@Override public ITypeComputationState assignType(JvmIdentifiableElement element, /* @Nullable */ LightweightTypeReference type) { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].assignType(element, type); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withRootExpectation(LightweightTypeReference expectation) { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withRootExpectation(expectation); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withExpectation(LightweightTypeReference expectation) { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withExpectation(expectation); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withoutRootExpectation() { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withoutRootExpectation(); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withReturnExpectation() { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withReturnExpectation(); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState assignType(JvmIdentifiableElement element, /* @Nullable */ LightweightTypeReference type, boolean addToChildScope) { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].assignType(element, type, addToChildScope); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState getForkedState() { AbstractTypeComputationState[] states = new AbstractTypeComputationState[assigners.length]; for(int i = 0; i < states.length; i++) { states[i] = assigners[i].getForkedState(); } return new CompoundTypeComputationState(owner, states); }
@Override public ITypeComputationState withNonVoidExpectation() { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withNonVoidExpectation(); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withTypeCheckpoint(/* @Nullable */ EObject context) { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withTypeCheckpoint(context); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withoutExpectation() { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withoutExpectation(); } return new CompoundTypeComputationState(owner, result); }
@Override public ITypeComputationState withExpectedExceptions(List<LightweightTypeReference> declaredExceptionTypes) { AbstractTypeComputationState[] result = new AbstractTypeComputationState[components.length]; for (int i = 0; i < components.length; i++) { result[i] = components[i].withExpectedExceptions(declaredExceptionTypes); } return new CompoundTypeComputationState(owner, result); }
argumentState = new CompoundTypeComputationState(substitutedComponentType.getOwner(), first, second); } else { argumentState = createVarArgTypeComputationState(substitutedComponentType);