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 Modifier and Type Interface Description static class
IGosuClass.ProxyUtil
-
Field Summary
Fields Modifier and Type Field Description static String
ANONYMOUS_PREFIX
static String
PROXY_PREFIX
static String
SUPER_PROXY_CLASS_PREFIX
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Method Summary
-
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 Detail
-
PROXY_PREFIX
static final String PROXY_PREFIX
- See Also:
- Constant Field Values
-
SUPER_PROXY_CLASS_PREFIX
static final String SUPER_PROXY_CLASS_PREFIX
- See Also:
- Constant Field Values
-
ANONYMOUS_PREFIX
static final String ANONYMOUS_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
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:
ITypeInfo
-
getModifierInfo
IModifierInfo getModifierInfo()
-
isSubClass
boolean isSubClass(IType gsSubType)
-
isStructure
boolean isStructure()
-
isCompiled
boolean isCompiled()
-
getInnerClass
IGosuClass getInnerClass(CharSequence strTypeName)
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
IDynamicPropertySymbol getMemberProperty(String name)
-
getEnclosingTypeReference
IType getEnclosingTypeReference()
-
getFunctionStatement
IFunctionStatement getFunctionStatement(IMethodInfo method)
-
getConstructorStatement
IConstructorStatement getConstructorStatement(IConstructorInfo ctor)
-
getPropertyDeclaration
INameInDeclaration getPropertyDeclaration(String name)
-
getJavaType
IJavaType getJavaType()
-
getSubtypes
List<? extends IType> 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
void setEnclosingType(IType enclosingType)
Only for use during type loading e.g., from GosuClassTypeLoader- Parameters:
enclosingType
- the enclosing type
-
setNamespace
void setNamespace(String strNamespace)
-
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()
-
-