booleanType = repos.basicTypeFromTypeCode(Constants.T_BOOLEAN); byteType = repos.basicTypeFromTypeCode(Constants.T_BYTE); charType = repos.basicTypeFromTypeCode(Constants.T_CHAR); shortType = repos.basicTypeFromTypeCode(Constants.T_SHORT); intType = repos.basicTypeFromTypeCode(Constants.T_INT); longType = repos.basicTypeFromTypeCode(Constants.T_LONG); floatType = repos.basicTypeFromTypeCode(Constants.T_FLOAT); doubleType = repos.basicTypeFromTypeCode(Constants.T_DOUBLE); voidType = repos.basicTypeFromTypeCode(Constants.T_VOID);
	protected void setUp() {		// In this test, all class types are explicitly marked as		// class vs. interface, and supertypes explicitly identified.		// So, dynamic class resolution should never be required.		ClassResolver resolver = new NullClassResolver();		this.repos = new TypeRepository(resolver);		// Create the common class library types needed		javaLangObjectType = repos.classTypeFromDottedClassName("java.lang.Object");		setClass(javaLangObjectType);		javaIoSerializableType = repos.classTypeFromDottedClassName("java.io.Serializable");		setInterface(javaIoSerializableType);		javaLangCloneableType = repos.classTypeFromDottedClassName("java.lang.Cloneable");		setInterface(javaLangCloneableType);		// Class types should have a unique representation		myClassType = repos.classTypeFromSlashedClassName("com/foobar/MyClass");		setClass(myClassType);		// Fake hierarchy classes		mySuperclassType = repos.classTypeFromDottedClassName("com.foobar.MySuperClass");		setClass(mySuperclassType);		myInterfaceType = repos.classTypeFromDottedClassName("com.foobar.MyInterface");		setInterface(myInterfaceType);		mySubinterfaceType = repos.classTypeFromDottedClassName("com.foobar.SubInterface");		setInterface(mySubinterfaceType);		repos.addSuperclassLink(myClassType, mySuperclassType);		repos.addSuperclassLink(mySuperclassType, javaLangObjectType);		repos.addInterfaceLink(mySuperclassType, myInterfaceType);		repos.addInterfaceLink(mySubinterfaceType, myInterfaceType);		// Array classes		myClassArrayType = repos.arrayTypeFromDimensionsAndElementType(1, myClassType);		mySuperclassArrayType = repos.arrayTypeFromDimensionsAndElementType(1, mySuperclassType);		myInterfaceArrayType = repos.arrayTypeFromDimensionsAndElementType(1, myInterfaceType);		mySubinterfaceArrayType = repos.arrayTypeFromDimensionsAndElementType(1, mySubinterfaceType);		javaLangObjectArray1Type = repos.arrayTypeFromDimensionsAndElementType(1, javaLangObjectType);		javaLangObjectArray2Type = repos.arrayTypeFromDimensionsAndElementType(2, javaLangObjectType);	}