1 11 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints2; 12 13 import org.eclipse.core.runtime.Assert; 14 15 import org.eclipse.jdt.core.ICompilationUnit; 16 17 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.CompilationUnitRange; 18 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType; 19 20 public final class CastVariable2 extends ConstraintVariable2 implements ITypeConstraintVariable { 21 22 private final CompilationUnitRange fRange; 23 private final ConstraintVariable2 fExpressionVariable; 24 25 public CastVariable2(TType type, CompilationUnitRange range, ConstraintVariable2 expressionVariable) { 26 super(type); 27 Assert.isNotNull(expressionVariable); 28 Assert.isNotNull(range); 29 fRange= range; 30 fExpressionVariable= expressionVariable; 31 } 32 33 public CompilationUnitRange getRange() { 34 return fRange; 35 } 36 37 public ICompilationUnit getCompilationUnit() { 38 return fRange.getCompilationUnit(); 39 } 40 41 public void setCompilationUnit(ICompilationUnit unit) { 42 throw new UnsupportedOperationException (); 43 } 44 45 public ConstraintVariable2 getExpressionVariable() { 46 return fExpressionVariable; 47 } 48 49 } 51 | Popular Tags |