public class GosuFragment extends AbstractType implements IGosuFragment, ICompilableTypeInternal
| Modifier and Type | Field and Description |
|---|---|
static String |
FRAGMENT_NAME_PREFIX
Deprecated.
|
FRAGMENT_PACKAGEEMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST| Constructor and Description |
|---|
GosuFragment(String name,
HashMap<String,ISymbol> externalSymbols,
ITypeUsesMap typeUsesMap)
Deprecated.
|
getLiteralMetaType, getMetaType, getTheRefclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetLiteralMetaType, getMetaType, getSourceFilespublic static final String FRAGMENT_NAME_PREFIX
public GosuFragment(String name, HashMap<String,ISymbol> externalSymbols, ITypeUsesMap typeUsesMap)
public int getBlockCount()
getBlockCount in interface ICompilableTypeInternalpublic void addBlock(IBlockClass block)
addBlock in interface ICompilableTypeInternalpublic void removeBlock(IBlockClass block)
removeBlock in interface ICompilableTypeInternalpublic IGosuClass getBlock(int i)
getBlock in interface ICompilableTypepublic IRelativeTypeInfo getTypeInfo()
getTypeInfo in interface ICompilableTypegetTypeInfo in interface ITypepublic GosuClassTypeLoader getTypeLoader()
getTypeLoader in interface ICompilableTypegetTypeLoader in interface ITypepublic ITypeUsesMap getTypeUsesMap()
getTypeUsesMap in interface ICompilableTypepublic void assignTypeUsesMap(GosuParser parser)
assignTypeUsesMap in interface ICompilableTypeInternalpublic IType getArrayType()
getArrayType in interface ITypepublic ISourceFileHandle getSourceFileHandle()
getSourceFileHandle in interface IFileRepositoryBasedTypepublic IClassStatement getClassStatement()
getClassStatement in interface ICompilableTypepublic List<DynamicFunctionSymbol> getMemberFunctions(String names)
getMemberFunctions in interface ICompilableTypeInternalpublic IType resolveRelativeInnerClass(String strRelativeInnerClassName, boolean bForce)
resolveRelativeInnerClass in interface IHasInnerClasspublic IGosuClassInternal getEnclosingType()
getEnclosingType in interface ICompilableTypeInternalgetEnclosingType in interface ICompilableTypegetEnclosingType in interface ITypepublic IType getEnclosingNonBlockType()
getEnclosingNonBlockType in interface ICompilableTypeInternalpublic DynamicPropertySymbol getStaticProperty(String name)
getStaticProperty in interface ICompilableTypeInternalpublic DynamicPropertySymbol getMemberProperty(String name)
getMemberProperty in interface ICompilableTypeInternalpublic Map<String,ICapturedSymbol> getCapturedSymbols()
getCapturedSymbols in interface ICompilableTypeInternalpublic ICapturedSymbol getCapturedSymbol(String strName)
getCapturedSymbol in interface ICompilableTypeInternalpublic VarStatement getMemberField(String charSequence)
getMemberField in interface ICompilableTypeInternalpublic boolean isStatic()
isStatic in interface ICompilableTypepublic boolean isAnonymous()
isAnonymous in interface ICompilableTypepublic IType getGenericType()
getGenericType in interface ITypepublic boolean isInterface()
isInterface in interface ITypepublic IType[] getInterfaces()
getInterfaces in interface ITypepublic boolean isParameterizedType()
isParameterizedType in interface ITypepublic boolean isGenericType()
isGenericType in interface ITypepublic IGosuParser getParser()
getParser in interface ICompilableTypepublic void addCapturedSymbol(ICapturedSymbol sym)
addCapturedSymbol in interface ICompilableTypeInternalpublic IGenericTypeVariable[] getGenericTypeVariables()
getGenericTypeVariables in interface ITypepublic IType getParameterizedType(IType... ofType)
getParameterizedType in interface ITypepublic IType[] getTypeParameters()
getTypeParameters in interface ITypepublic boolean isPrimitive()
isPrimitive in interface ITypepublic Object makeArrayInstance(int iLength)
makeArrayInstance in interface ITypepublic Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
getArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
setArrayComponent in interface ITypeIllegalArgumentExceptionArrayIndexOutOfBoundsExceptionpublic int getArrayLength(Object array) throws IllegalArgumentException
getArrayLength in interface ITypeIllegalArgumentExceptionpublic IType getComponentType()
getComponentType in interface ITypepublic boolean isAssignableFrom(IType type)
isAssignableFrom in interface ITypepublic void unloadTypeInfo()
unloadTypeInfo in interface ITypepublic Object readResolve() throws ObjectStreamException
readResolve in interface ITypeObjectStreamExceptionpublic int getModifiers()
getModifiers in interface ITypepublic boolean isAbstract()
isAbstract in interface ITypepublic boolean isDiscarded()
isDiscarded in interface ITypepublic void setDiscarded(boolean bDiscarded)
setDiscarded in interface ITypepublic boolean isCompoundType()
isCompoundType in interface ITypepublic Set<IType> getCompoundTypeComponents()
getCompoundTypeComponents in interface ITypepublic IType getInnerClass(CharSequence strTypeName)
getInnerClass in interface IHasInnerClasspublic int getDepth()
getDepth in interface ICompilableTypeInternalpublic void compileDeclarationsIfNeeded()
compileDeclarationsIfNeeded in interface ICompilableTypeInternalpublic void compileDefinitionsIfNeeded(boolean bForce)
compileDefinitionsIfNeeded in interface ICompilableTypeInternalpublic void compileHeaderIfNeeded()
compileHeaderIfNeeded in interface ICompilableTypeInternalpublic void putClassMembers(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)
putClassMembers in interface ICompilableTypeInternalpublic void putClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)
putClassMembers in interface ICompilableTypeInternalpublic boolean isCreateEditorParser()
isCreateEditorParser in interface ICompilableTypeInternalpublic int getAnonymousInnerClassCount()
getAnonymousInnerClassCount in interface ICompilableTypeInternalpublic List<? extends IGosuAnnotation> getGosuAnnotations()
getGosuAnnotations in interface ICompilableTypeInternalpublic boolean shouldFullyCompileAnnotations()
shouldFullyCompileAnnotations in interface ICompilableTypeInternalpublic List<? extends IVarStatement> getMemberFields()
getMemberFields in interface ICompilableTypeInternalpublic List<IVarStatement> getStaticFields()
getStaticFields in interface ICompilableTypeInternalpublic void setExpression(IExpression expression)
setExpression in interface IGosuFragmentprotected GosuFragmentTypeInfo createTypeInfo()
public IExpression getExpression()
getExpression in interface IGosuFragmentpublic boolean isExternalSymbol(String name)
isExternalSymbol in interface IGosuFragmentpublic Object evaluate(IExternalSymbolMap externalSymbols)
evaluate in interface IGosuFragmentpublic Object evaluateRoot(IExternalSymbolMap externalSymbols)
evaluateRoot in interface IGosuFragmentpublic Class getBackingClass()
getBackingClass in interface IHasJavaClasspublic IJavaClassInfo getBackingClassInfo()
getBackingClassInfo in interface IJavaBackedTypeDatapublic String getRelativeName()
getRelativeName in interface ITypepublic String getNamespace()
getNamespace in interface ITypepublic String getDisplayName()
getDisplayName in interface ITypepublic IType getSupertype()
getSupertype in interface ITypepublic Set<? extends IType> getAllTypesInHierarchy()
getAllTypesInHierarchy in interface ITypepublic ISymbol getExternalSymbol(String strName)
getExternalSymbol in interface ICompilableTypepublic String getSource()
getSource in interface ICompilableTypeInternalpublic GosuClassParseInfo getParseInfo()
getParseInfo in interface ICompilableTypeInternalpublic boolean hasAssertions()
hasAssertions in interface ICompilableTypeInternalpublic ClassType getClassType()
getClassType in interface IFileRepositoryBasedTypepublic List<? extends IType> getInnerClasses()
getInnerClasses in interface IHasInnerClasspublic List<? extends IType> getLoadedInnerClasses()
getLoadedInnerClasses in interface IHasInnerClasspublic boolean isCompilable()
isCompilable in interface ICompilablepublic byte[] compile()
compile in interface ICompilableCopyright © 2016. All rights reserved.