Package gw.lang.reflect.gs
Interface IGosuClass
- All Superinterfaces:
Comparable
,ICanBeAnnotation
,ICompilableType
,IEnhanceableType
,IEnumData
,IEnumType
,IFileRepositoryBasedType
,IHasInnerClass
,IHasJavaClass
,IParameterizableType
,IType
,Serializable
- All Known Subinterfaces:
IBlockClass
,IBlockClassInternal
,IGosuClassInternal
,IGosuEnhancement
,IGosuEnhancementInternal
,IGosuProgram
,IGosuProgramInternal
,IGosuTemplateInternal
,ITemplateType
- All Known Implementing Classes:
BlockClass
,GosuClass
,GosuClassFragment
,GosuEnhancement
,GosuProgram
,GosuTemplateType
,SyntheticClass
public interface IGosuClass
extends ICompilableType, IEnumType, IEnhanceableType, Comparable, IHasInnerClass, IHasJavaClass, IParameterizableType, ICanBeAnnotation
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
Method Summary
Modifier and TypeMethodDescriptiongetFunctionStatement
(IMethodInfo method) getInnerClass
(CharSequence strTypeName) returns the appropriate inner classList<? extends IGosuClass>
Map<CharSequence,
? extends IGosuClass> Map<CharSequence,
? extends IGosuClass> List<? extends IVarStatement>
Map<String,
? extends IVarStatement> List<? extends IDynamicFunctionSymbol>
getMemberProperty
(String name) getPropertyDeclaration
(String name) WARNING: This method is slow the first time it is called.Get the type information for this intrinsic type.boolean
boolean
hasError()
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
isSubClass
(IType gsSubType) boolean
void
setCreateEditorParser
(boolean bEditorParser) void
setEnclosingType
(IType enclosingType) Only for use during type loading e.g., from GosuClassTypeLoadervoid
setNamespace
(String strNamespace) boolean
void
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface gw.lang.reflect.ICanBeAnnotation
isAnnotation
Methods inherited from interface gw.lang.reflect.gs.ICompilableType
getBlock, getClassStatement, getEnclosingType, getExternalSymbol, getParser, getTypeLoader, getTypeUsesMap, isAnonymous, isStatic
Methods inherited from interface gw.lang.reflect.IEnumData
getEnumConstants, getEnumValue, getEnumValues
Methods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getClassType, getJavaName, getSourceFileHandle
Methods inherited from interface gw.lang.parser.IHasInnerClass
getLoadedInnerClasses, resolveRelativeInnerClass
Methods inherited from interface gw.lang.reflect.IHasJavaClass
getBackingClass
Methods inherited from interface gw.internal.gosu.parser.IParameterizableType
getLoaderParameterizedTypes, isStrictGenerics
Methods inherited from interface gw.lang.reflect.IType
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getFunctionalInterface, getGenericType, getGenericTypeVariables, getInterfaces, getLiteralMetaType, getMetaType, getModifiers, getName, getNamespace, getParameterizedType, getRelativeName, getSourceFiles, getSupertype, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isMutable, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
Field Details
-
PROXY_PREFIX
- See Also:
-
SUPER_PROXY_CLASS_PREFIX
- See Also:
-
ANONYMOUS_PREFIX
- See Also:
-
-
Method Details
-
getTypeInfo
IGosuClassTypeInfo getTypeInfo()Description copied from interface:IType
Get the type information for this intrinsic type.- Specified by:
getTypeInfo
in interfaceICompilableType
- Specified by:
getTypeInfo
in interfaceIType
- See Also:
-
getModifierInfo
IModifierInfo getModifierInfo() -
isSubClass
-
isStructure
boolean isStructure() -
isCompiled
boolean isCompiled() -
getInnerClass
Description copied from interface:IHasInnerClass
returns the appropriate inner class- Specified by:
getInnerClass
in interfaceIHasInnerClass
- Returns:
-
getInnerClasses
List<? extends IGosuClass> getInnerClasses()- Specified by:
getInnerClasses
in interfaceIHasInnerClass
-
getInnerClassesMap
Map<CharSequence,? extends IGosuClass> getInnerClassesMap() -
getClassStatementWithoutCompile
IClassStatement getClassStatementWithoutCompile() -
getCompilationState
ICompilationState getCompilationState() -
isCompilingHeader
boolean isCompilingHeader() -
isHeaderCompiled
boolean isHeaderCompiled() -
isCompilingDeclarations
boolean isCompilingDeclarations() -
isDeclarationsCompiled
boolean isDeclarationsCompiled() -
isDeclarationsBypassed
boolean isDeclarationsBypassed() -
isInnerDeclarationsCompiled
boolean isInnerDeclarationsCompiled() -
isCompilingDefinitions
boolean isCompilingDefinitions() -
isDefinitionsCompiled
boolean isDefinitionsCompiled() -
isTestClass
boolean isTestClass() -
hasError
boolean hasError() -
hasWarnings
boolean hasWarnings() -
getParseResultsException
ParseResultsException getParseResultsException() -
getMemberFields
List<? extends IVarStatement> getMemberFields() -
getMemberFunctions
List<? extends IDynamicFunctionSymbol> getMemberFunctions() -
getMemberFieldsMap
Map<String,? extends IVarStatement> getMemberFieldsMap() -
getMemberProperty
-
getEnclosingTypeReference
IType getEnclosingTypeReference() -
getFunctionStatement
-
getConstructorStatement
-
getPropertyDeclaration
-
getJavaType
IJavaType getJavaType() -
getSubtypes
WARNING: This method is slow the first time it is called. It will iterate over all types in the system and find all matching subtypes- Returns:
- all subtypes of this type
-
setEnclosingType
Only for use during type loading e.g., from GosuClassTypeLoader- Parameters:
enclosingType
- the enclosing type
-
setNamespace
-
shouldKeepDebugInfo
boolean shouldKeepDebugInfo() -
setCreateEditorParser
void setCreateEditorParser(boolean bEditorParser) -
unloadBackingClass
void unloadBackingClass() -
hasBackingClass
boolean hasBackingClass() -
findProxiedClassInHierarchy
IType findProxiedClassInHierarchy() -
getKnownInnerClassesWithoutCompiling
Map<CharSequence,? extends IGosuClass> getKnownInnerClassesWithoutCompiling() -
getBlocks
List<IGosuClass> getBlocks() -
getSource
String getSource()
-