|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rice.cs.dynamicjava.symbol.type.TypeVisitorLambda<RetType>
edu.rice.cs.dynamicjava.symbol.type.TypeDepthFirstVisitor<RetType>
public abstract class TypeDepthFirstVisitor<RetType>
A parametric abstract implementation of a visitor over Type that returns a value. This visitor implements the visitor interface with methods that first visit children, and then call forCASEOnly(), passing in the values of the visits of the children. (CASE is replaced by the case name.) By default, each of forCASEOnly delegates to a more general case; at the top of this delegation tree is defaultCase(), which (unless overridden) throws an exception.
| Constructor Summary | |
|---|---|
TypeDepthFirstVisitor()
|
|
| Methods inherited from class edu.rice.cs.dynamicjava.symbol.type.TypeVisitorLambda |
|---|
value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeDepthFirstVisitor()
| Method Detail |
|---|
public RetType defaultCase(Type that)
java.lang.IllegalArgumentExceptionpublic RetType forTypeOnly(Type that)
public RetType forValidTypeOnly(ValidType that)
public RetType forPrimitiveTypeOnly(PrimitiveType that)
public RetType forBooleanTypeOnly(BooleanType that)
public RetType forNumericTypeOnly(NumericType that)
public RetType forIntegralTypeOnly(IntegralType that)
public RetType forCharTypeOnly(CharType that)
public RetType forIntegerTypeOnly(IntegerType that)
public RetType forByteTypeOnly(ByteType that)
public RetType forShortTypeOnly(ShortType that)
public RetType forIntTypeOnly(IntType that)
public RetType forLongTypeOnly(LongType that)
public RetType forFloatingPointTypeOnly(FloatingPointType that)
public RetType forFloatTypeOnly(FloatType that)
public RetType forDoubleTypeOnly(DoubleType that)
public RetType forReferenceTypeOnly(ReferenceType that)
public RetType forNullTypeOnly(NullType that)
public RetType forArrayTypeOnly(ArrayType that,
RetType ofType_result)
public RetType forSimpleArrayTypeOnly(SimpleArrayType that,
RetType ofType_result)
public RetType forVarargArrayTypeOnly(VarargArrayType that,
RetType ofType_result)
public RetType forClassTypeOnly(ClassType that)
public RetType forSimpleClassTypeOnly(SimpleClassType that)
public RetType forRawClassTypeOnly(RawClassType that)
public RetType forParameterizedClassTypeOnly(ParameterizedClassType that,
java.lang.Iterable<RetType> typeArguments_result)
public RetType forBoundTypeOnly(BoundType that,
java.lang.Iterable<RetType> ofTypes_result)
public RetType forIntersectionTypeOnly(IntersectionType that,
java.lang.Iterable<RetType> ofTypes_result)
public RetType forUnionTypeOnly(UnionType that,
java.lang.Iterable<RetType> ofTypes_result)
public RetType forVariableTypeOnly(VariableType that)
public RetType forTopTypeOnly(TopType that)
public RetType forBottomTypeOnly(BottomType that)
public RetType forVoidTypeOnly(VoidType that)
public RetType forWildcardOnly(Wildcard that)
public RetType forBooleanType(BooleanType that)
forBooleanType in interface TypeVisitor<RetType>forBooleanType in class TypeVisitorLambda<RetType>public RetType forCharType(CharType that)
TypeVisitorLambda
forCharType in interface TypeVisitor<RetType>forCharType in class TypeVisitorLambda<RetType>public RetType forByteType(ByteType that)
TypeVisitorLambda
forByteType in interface TypeVisitor<RetType>forByteType in class TypeVisitorLambda<RetType>public RetType forShortType(ShortType that)
TypeVisitorLambda
forShortType in interface TypeVisitor<RetType>forShortType in class TypeVisitorLambda<RetType>public RetType forIntType(IntType that)
TypeVisitorLambda
forIntType in interface TypeVisitor<RetType>forIntType in class TypeVisitorLambda<RetType>public RetType forLongType(LongType that)
TypeVisitorLambda
forLongType in interface TypeVisitor<RetType>forLongType in class TypeVisitorLambda<RetType>public RetType forFloatType(FloatType that)
TypeVisitorLambda
forFloatType in interface TypeVisitor<RetType>forFloatType in class TypeVisitorLambda<RetType>public RetType forDoubleType(DoubleType that)
TypeVisitorLambda
forDoubleType in interface TypeVisitor<RetType>forDoubleType in class TypeVisitorLambda<RetType>public RetType forNullType(NullType that)
TypeVisitorLambda
forNullType in interface TypeVisitor<RetType>forNullType in class TypeVisitorLambda<RetType>public RetType forSimpleArrayType(SimpleArrayType that)
TypeVisitorLambda
forSimpleArrayType in interface TypeVisitor<RetType>forSimpleArrayType in class TypeVisitorLambda<RetType>public RetType forVarargArrayType(VarargArrayType that)
TypeVisitorLambda
forVarargArrayType in interface TypeVisitor<RetType>forVarargArrayType in class TypeVisitorLambda<RetType>public RetType forSimpleClassType(SimpleClassType that)
TypeVisitorLambda
forSimpleClassType in interface TypeVisitor<RetType>forSimpleClassType in class TypeVisitorLambda<RetType>public RetType forRawClassType(RawClassType that)
TypeVisitorLambda
forRawClassType in interface TypeVisitor<RetType>forRawClassType in class TypeVisitorLambda<RetType>public RetType forParameterizedClassType(ParameterizedClassType that)
TypeVisitorLambda
forParameterizedClassType in interface TypeVisitor<RetType>forParameterizedClassType in class TypeVisitorLambda<RetType>public RetType forIntersectionType(IntersectionType that)
TypeVisitorLambda
forIntersectionType in interface TypeVisitor<RetType>forIntersectionType in class TypeVisitorLambda<RetType>public RetType forUnionType(UnionType that)
TypeVisitorLambda
forUnionType in interface TypeVisitor<RetType>forUnionType in class TypeVisitorLambda<RetType>public RetType forVariableType(VariableType that)
TypeVisitorLambda
forVariableType in interface TypeVisitor<RetType>forVariableType in class TypeVisitorLambda<RetType>public RetType forTopType(TopType that)
TypeVisitorLambda
forTopType in interface TypeVisitor<RetType>forTopType in class TypeVisitorLambda<RetType>public RetType forBottomType(BottomType that)
TypeVisitorLambda
forBottomType in interface TypeVisitor<RetType>forBottomType in class TypeVisitorLambda<RetType>public RetType forVoidType(VoidType that)
TypeVisitorLambda
forVoidType in interface TypeVisitor<RetType>forVoidType in class TypeVisitorLambda<RetType>public RetType forWildcard(Wildcard that)
TypeVisitorLambda
forWildcard in interface TypeVisitor<RetType>forWildcard in class TypeVisitorLambda<RetType>public RetType recur(Type that)
public java.lang.Iterable<RetType> recurOnIterableOfWildcardExtendsType(java.lang.Iterable<? extends Type> that)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||