use of org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ImmutableTypeVariable2 in project che by eclipse.
the class InferTypeArgumentsConstraintCreator method endVisit.
@Override
public void endVisit(ParenthesizedExpression node) {
if (node.resolveBoxing()) {
ImmutableTypeVariable2 boxed = fTCModel.makeImmutableTypeVariable(node.resolveTypeBinding(), node);
setConstraintVariable(node, boxed);
return;
}
ConstraintVariable2 expressionCv = getConstraintVariable(node.getExpression());
setConstraintVariable(node, expressionCv);
}
use of org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ImmutableTypeVariable2 in project che by eclipse.
the class InferTypeArgumentsConstraintCreator method endVisit.
@Override
public void endVisit(ThisExpression node) {
ITypeBinding typeBinding = node.resolveTypeBinding();
ImmutableTypeVariable2 cv = fTCModel.makeImmutableTypeVariable(typeBinding, /*no boxing*/
null);
setConstraintVariable(node, cv);
}
use of org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ImmutableTypeVariable2 in project che by eclipse.
the class InferTypeArgumentsConstraintCreator method endVisit.
@Override
public void endVisit(BooleanLiteral node) {
ITypeBinding typeBinding = node.resolveTypeBinding();
ImmutableTypeVariable2 cv = fTCModel.makeImmutableTypeVariable(typeBinding, node);
setConstraintVariable(node, cv);
}
use of org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ImmutableTypeVariable2 in project che by eclipse.
the class InferTypeArgumentsTCModel method makeImmutableTypeVariable.
public ImmutableTypeVariable2 makeImmutableTypeVariable(TType type) {
ImmutableTypeVariable2 cv = new ImmutableTypeVariable2(type);
ImmutableTypeVariable2 storedCv = (ImmutableTypeVariable2) storedCv(cv);
if (cv == storedCv) {
makeFixedElementVariables(storedCv, type);
makeArrayElementVariable(storedCv);
}
return storedCv;
}
use of org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ImmutableTypeVariable2 in project che by eclipse.
the class InferTypeArgumentsConstraintCreator method endVisit.
@Override
public void endVisit(QualifiedName node) {
if (node.resolveBoxing()) {
ImmutableTypeVariable2 boxed = fTCModel.makeImmutableTypeVariable(node.resolveTypeBinding(), node);
setConstraintVariable(node, boxed);
return;
}
ConstraintVariable2 cv = getConstraintVariable(node.getName());
setConstraintVariable(node, cv);
}
Aggregations