public class TypeTemplatePrinter extends TypeSwitch
Constructor and Description |
---|
TypeTemplatePrinter(TemplatePrinter p) |
Modifier and Type | Method and Description |
---|---|
void |
caseAnySubType(AnySubType t) |
void |
caseArrayType(ArrayType t) |
void |
caseBooleanType(BooleanType t) |
void |
caseByteType(ByteType t) |
void |
caseCharType(CharType t) |
void |
caseDoubleType(DoubleType t) |
void |
caseErroneousType(ErroneousType t) |
void |
caseFloatType(FloatType t) |
void |
caseIntType(IntType t) |
void |
caseLongType(LongType t) |
void |
caseNullType(NullType t) |
void |
caseRefType(RefType t) |
void |
caseShortType(ShortType t) |
void |
caseStmtAddressType(StmtAddressType t) |
void |
caseUnknownType(UnknownType t) |
void |
caseVoidType(VoidType t) |
void |
defaultCase(Type t) |
void |
printAssign(String v,
Type t) |
void |
setVariableName(String name) |
caseDefault, getResult, setResult
public TypeTemplatePrinter(TemplatePrinter p)
public void setVariableName(String name)
public void caseAnySubType(AnySubType t)
caseAnySubType
in class TypeSwitch
public void caseArrayType(ArrayType t)
caseArrayType
in class TypeSwitch
public void caseBooleanType(BooleanType t)
caseBooleanType
in class TypeSwitch
public void caseByteType(ByteType t)
caseByteType
in class TypeSwitch
public void caseCharType(CharType t)
caseCharType
in class TypeSwitch
public void defaultCase(Type t)
defaultCase
in class TypeSwitch
public void caseDoubleType(DoubleType t)
caseDoubleType
in class TypeSwitch
public void caseErroneousType(ErroneousType t)
caseErroneousType
in class TypeSwitch
public void caseFloatType(FloatType t)
caseFloatType
in class TypeSwitch
public void caseIntType(IntType t)
caseIntType
in class TypeSwitch
public void caseLongType(LongType t)
caseLongType
in class TypeSwitch
public void caseNullType(NullType t)
caseNullType
in class TypeSwitch
public void caseRefType(RefType t)
caseRefType
in class TypeSwitch
public void caseShortType(ShortType t)
caseShortType
in class TypeSwitch
public void caseStmtAddressType(StmtAddressType t)
caseStmtAddressType
in class TypeSwitch
public void caseUnknownType(UnknownType t)
caseUnknownType
in class TypeSwitch
public void caseVoidType(VoidType t)
caseVoidType
in class TypeSwitch