public IType getIntrinsicType() { return TypeSystem.getOrCreateTypeReference( JavaEnumType.this ); } }
protected IType getTheRef() { if (this instanceof INonLoadableType) { return this; } else { return TypeSystem.getOrCreateTypeReference(this); } } }
public IType getIntrinsicType() { return TypeSystem.getOrCreateTypeReference( JavaEnumType.this ); } }
@Override protected IGosuEnhancementInternal makeCopy( IType... paramTypes ) { return (IGosuEnhancementInternal)TypeSystem.getOrCreateTypeReference( new GosuEnhancement( (IGosuEnhancementInternal)TypeSystem.getOrCreateTypeReference( this ), paramTypes ) ); }
@Override protected IGosuArrayClass makeArrayType() { return (IGosuArrayClass)TypeSystem.getOrCreateTypeReference( new GosuArrayClass( TypeSystem.getOrCreateTypeReference( this ), getTypeLoader() ) ); }
public IGosuProgram createProgram( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable ) { GosuProgram program = new GosuProgram(strNamespace, strRelativeName, loader, sourceFile, typeUsesMap, symTable); return (IGosuProgram)TypeSystem.getOrCreateTypeReference(program); }
public IGosuEnhancement createEnhancement( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap ) { return (IGosuEnhancement)TypeSystem.getOrCreateTypeReference( new GosuEnhancement( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap ) ); } public ITemplateType createTemplate( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable )
public IGosuClass createClass( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap ) { final ITypeRef ref = TypeSystem.getOrCreateTypeReference(new GosuClass(strNamespace, strRelativeName, loader, sourceFile, typeUsesMap)); return (IGosuClass) ref; } public IGosuProgram createProgram( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable )
private IJavaTypeInternal thisRef() { if (_typeRef == null) { ITypeRef ref = TypeSystem.getOrCreateTypeReference(this); try { _typeRef = (IJavaTypeInternal) ref; } catch(ClassCastException e) { throw new RuntimeException("Could not reresolve the java type " + this.getName() + ".\n" + "The actual type of the reference was " + ref.getClass(), e); } } return _typeRef; }
public boolean isAssignableFrom(IType type) { //noinspection SuspiciousMethodCalls return type.getAllTypesInHierarchy().contains( TypeSystem.getOrCreateTypeReference( this ) ); }
protected IType init() { IType arrayType = makeArrayType(); return TypeSystem.getOrCreateTypeReference(arrayType); } };
@Override protected IGosuArrayClass makeArrayType() { return (IGosuArrayClass)TypeSystem.getOrCreateTypeReference( new GosuArrayClass( TypeSystem.getOrCreateTypeReference( this ), getTypeLoader() ) ); }
protected IType init() { IType arrayType = makeArrayType(); return TypeSystem.getOrCreateTypeReference(arrayType); } };
@Override public IType getType(String fullyQualifiedName) { maybeInitTypes(); if (fullyQualifiedName == null || _rawTypes.get(fullyQualifiedName) == null) { return null; } IType iType = _rawTypes.get(fullyQualifiedName); return TypeSystem.getOrCreateTypeReference(iType); }
public ITemplateType createTemplate( String strNamespace, String strRelativeName, GosuClassTypeLoader loader, ISourceFileHandle sourceFile, ITypeUsesMap typeUsesMap, ISymbolTable symTable ) { return (ITemplateType)TypeSystem.getOrCreateTypeReference( new GosuTemplateType( strNamespace, strRelativeName, loader, sourceFile, typeUsesMap, symTable ) ); }
private IJavaTypeInternal thisRef() { if (_typeRef == null) { ITypeRef ref = TypeSystem.getOrCreateTypeReference(this); try { _typeRef = (IJavaTypeInternal) ref; } catch(ClassCastException e) { throw new RuntimeException("Could not reresolve the java type " + this.getName() + ".\n" + "The actual type of the reference was " + ref.getClass(), e); } } return _typeRef; }
@Override public IType getType(String fullyQualifiedName) { if (fullyQualifiedName.startsWith(GW_VARK_TASKS_PACKAGE_WITH_DOT)) { IType type = _types.get().getType(fullyQualifiedName); if (type != null) { return TypeSystem.getOrCreateTypeReference(type); } } return null; }
public IDefaultArrayType getThisRef() { IType compType = this; do { compType = compType.getComponentType(); } while( compType.isArray() ); return compType instanceof INonLoadableType || compType instanceof IJavaType ? this : (IDefaultArrayType)TypeSystem.getOrCreateTypeReference( this ); }
public IDefaultArrayType getThisRef() { IType compType = this; do { compType = compType.getComponentType(); } while( compType.isArray() ); return compType instanceof INonLoadableType || compType instanceof IJavaType ? this : (IDefaultArrayType)TypeSystem.getOrCreateTypeReference( this ); }
protected Set<? extends IType> loadAllTypesInHierarchy() { Set<IType> allTypes; if( isArray() ) { allTypes = getArrayVersionsOfEachType( getComponentType().getAllTypesInHierarchy() ); } else { allTypes = getAllClassesInClassHierarchyAsIntrinsicTypes( TypeSystem.getOrCreateTypeReference( this ) ); } return allTypes; }