@Test public void symTypeConstantTest(){ SymTypeConstant intType = SymTypeExpressionFactory.createTypeConstant("int"); assertEquals("int",intType.print()); intType.setConstName("double"); assertEquals("double",intType.print()); intType.setConstName("int"); assertEquals("java.lang.Integer",intType.getBoxedConstName()); assertEquals("Integer",intType.getBaseOfBoxedName()); assertTrue(intType.isIntegralType()); assertTrue(intType.isNumericType()); }
public abstract String print();
SymTypeExpression { public abstract String print(); }
SymTypeExpression { public abstract String print();  }
SymTypeExpression { public abstract String print();  abstract String print(); boolean isTypeConstant(); boolean isGenericType(); boolean isTypeVariable(); boolean isArrayType(); boolean isVoidType(); boolean isNullType(); boolean isObjectType(); abstract SymTypeExpression deepClone(); abstract boolean deepEquals(SymTypeExpression sym); List<FunctionSymbol> getMethodList(String methodname); List<FunctionSymbol> getMethodList(String methodName, boolean outerIsType); List<VariableSymbol> getFieldList(String fieldName); List<VariableSymbol> getFieldList(String fieldName, boolean outerIsType); TypeSymbol getTypeInfo(); List<TypeSymbol> getInnerTypeList(String name); }
SymTypeExpression { public abstract String print();  abstract String print(); boolean isTypeConstant(); boolean isGenericType(); boolean isTypeVariable(); boolean isArrayType(); boolean isVoidType(); boolean isNullType(); boolean isObjectType(); abstract SymTypeExpression deepClone(); abstract boolean deepEquals(SymTypeExpression sym); List<FunctionSymbol> getMethodList(String methodname); List<FunctionSymbol> getMethodList(String methodName, boolean outerIsType); List<VariableSymbol> getFieldList(String fieldName); List<VariableSymbol> getFieldList(String fieldName, boolean outerIsType); TypeSymbol getTypeInfo(); List<TypeSymbol> getInnerTypeList(String name);  }