Class GosuFragment
- java.lang.Object
-
- gw.lang.reflect.AbstractType
-
- gw.internal.gosu.parser.fragments.GosuFragment
-
- All Implemented Interfaces:
ICompilableTypeInternal,IFileRepositoryBasedType,IHasInnerClass,ICompilableType,IGosuFragment,IHasJavaClass,IType,IJavaBackedTypeData,Serializable
public class GosuFragment extends AbstractType implements IGosuFragment, ICompilableTypeInternal
Deprecated.DO NOT USE THIS CLASS! This is here exclusively for PCF types.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFRAGMENT_NAME_PREFIXDeprecated.-
Fields inherited from interface gw.lang.reflect.gs.IGosuFragment
FRAGMENT_PACKAGE
-
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
-
Constructor Summary
Constructors Constructor Description GosuFragment(String name, HashMap<String,ISymbol> externalSymbols, ITypeUsesMap typeUsesMap)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddBlock(IBlockClass block)Deprecated.voidaddCapturedSymbol(ICapturedSymbol sym)Deprecated.voidassignTypeUsesMap(GosuParser parser)Deprecated.byte[]compile()Deprecated.voidcompileDeclarationsIfNeeded()Deprecated.voidcompileDefinitionsIfNeeded(boolean bForce)Deprecated.voidcompileHeaderIfNeeded()Deprecated.protected GosuFragmentTypeInfocreateTypeInfo()Deprecated.Objectevaluate(IExternalSymbolMap externalSymbols)Deprecated.ObjectevaluateRoot(IExternalSymbolMap externalSymbols)Deprecated.Set<? extends IType>getAllTypesInHierarchy()Deprecated.intgetAnonymousInnerClassCount()Deprecated.ObjectgetArrayComponent(Object array, int iIndex)Deprecated.intgetArrayLength(Object array)Deprecated.ITypegetArrayType()Deprecated.ClassgetBackingClass()Deprecated.IJavaClassInfogetBackingClassInfo()Deprecated.IGosuClassgetBlock(int i)Deprecated.intgetBlockCount()Deprecated.ICapturedSymbolgetCapturedSymbol(String strName)Deprecated.Map<String,ICapturedSymbol>getCapturedSymbols()Deprecated.IClassStatementgetClassStatement()Deprecated.ClassTypegetClassType()Deprecated.ITypegetComponentType()Deprecated.Set<IType>getCompoundTypeComponents()Deprecated.intgetDepth()Deprecated.StringgetDisplayName()Deprecated.ITypegetEnclosingNonBlockType()Deprecated.IGosuClassInternalgetEnclosingType()Deprecated.IExpressiongetExpression()Deprecated.ISymbolgetExternalSymbol(String strName)Deprecated.ITypegetGenericType()Deprecated.IGenericTypeVariable[]getGenericTypeVariables()Deprecated.List<? extends IGosuAnnotation>getGosuAnnotations()Deprecated.ITypegetInnerClass(CharSequence strTypeName)Deprecated.List<? extends IType>getInnerClasses()Deprecated.IType[]getInterfaces()Deprecated.List<? extends IType>getLoadedInnerClasses()Deprecated.VarStatementgetMemberField(String charSequence)Deprecated.List<? extends IVarStatement>getMemberFields()Deprecated.List<DynamicFunctionSymbol>getMemberFunctions(String names)Deprecated.DynamicPropertySymbolgetMemberProperty(String name)Deprecated.intgetModifiers()Deprecated.StringgetName()Deprecated.StringgetNamespace()Deprecated.ITypegetParameterizedType(IType... ofType)Deprecated.GosuClassParseInfogetParseInfo()Deprecated.IGosuParsergetParser()Deprecated.StringgetRelativeName()Deprecated.StringgetSource()Deprecated.ISourceFileHandlegetSourceFileHandle()Deprecated.List<IVarStatement>getStaticFields()Deprecated.DynamicPropertySymbolgetStaticProperty(String name)Deprecated.ITypegetSupertype()Deprecated.IRelativeTypeInfogetTypeInfo()Deprecated.GosuClassTypeLoadergetTypeLoader()Deprecated.IType[]getTypeParameters()Deprecated.ITypeUsesMapgetTypeUsesMap()Deprecated.booleanhasAssertions()Deprecated.booleanisAbstract()Deprecated.booleanisAnonymous()Deprecated.booleanisArray()Deprecated.booleanisAssignableFrom(IType type)Deprecated.booleanisCompilable()Deprecated.booleanisCompoundType()Deprecated.booleanisCreateEditorParser()Deprecated.booleanisDiscarded()Deprecated.booleanisEnum()Deprecated.booleanisExternalSymbol(String name)Deprecated.booleanisFinal()Deprecated.booleanisGenericType()Deprecated.booleanisInterface()Deprecated.booleanisMutable()Deprecated.booleanisParameterizedType()Deprecated.booleanisPrimitive()Deprecated.booleanisStatic()Deprecated.booleanisValid()Deprecated.ObjectmakeArrayInstance(int iLength)Deprecated.voidputClassMembers(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)Deprecated.voidputClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)Deprecated.ObjectreadResolve()Deprecated.voidremoveBlock(IBlockClass block)Deprecated.ITyperesolveRelativeInnerClass(String strRelativeInnerClassName, boolean bForce)Deprecated.voidsetArrayComponent(Object array, int iIndex, Object value)Deprecated.voidsetDiscarded(boolean bDiscarded)Deprecated.voidsetExpression(IExpression expression)Deprecated.booleanshouldFullyCompileAnnotations()Deprecated.StringtoString()Deprecated.voidunloadTypeInfo()Deprecated.-
Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getJavaName
-
Methods inherited from interface gw.lang.reflect.IType
getFunctionalInterface, getLiteralMetaType, getMetaType, getSourceFiles, isDynamic
-
-
-
-
Field Detail
-
FRAGMENT_NAME_PREFIX
public static final String FRAGMENT_NAME_PREFIX
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GosuFragment
public GosuFragment(String name, HashMap<String,ISymbol> externalSymbols, ITypeUsesMap typeUsesMap)
Deprecated.
-
-
Method Detail
-
getBlockCount
public int getBlockCount()
Deprecated.- Specified by:
getBlockCountin interfaceICompilableTypeInternal
-
addBlock
public void addBlock(IBlockClass block)
Deprecated.- Specified by:
addBlockin interfaceICompilableTypeInternal
-
removeBlock
public void removeBlock(IBlockClass block)
Deprecated.- Specified by:
removeBlockin interfaceICompilableTypeInternal
-
getBlock
public IGosuClass getBlock(int i)
Deprecated.- Specified by:
getBlockin interfaceICompilableType
-
getTypeInfo
public IRelativeTypeInfo getTypeInfo()
Deprecated.- Specified by:
getTypeInfoin interfaceICompilableType- Specified by:
getTypeInfoin interfaceIType
-
getTypeLoader
public GosuClassTypeLoader getTypeLoader()
Deprecated.- Specified by:
getTypeLoaderin interfaceICompilableType- Specified by:
getTypeLoaderin interfaceIType
-
getTypeUsesMap
public ITypeUsesMap getTypeUsesMap()
Deprecated.- Specified by:
getTypeUsesMapin interfaceICompilableType
-
assignTypeUsesMap
public void assignTypeUsesMap(GosuParser parser)
Deprecated.- Specified by:
assignTypeUsesMapin interfaceICompilableTypeInternal
-
getArrayType
public IType getArrayType()
Deprecated.- Specified by:
getArrayTypein interfaceIType
-
getSourceFileHandle
public ISourceFileHandle getSourceFileHandle()
Deprecated.- Specified by:
getSourceFileHandlein interfaceIFileRepositoryBasedType
-
getClassStatement
public IClassStatement getClassStatement()
Deprecated.- Specified by:
getClassStatementin interfaceICompilableType
-
getMemberFunctions
public List<DynamicFunctionSymbol> getMemberFunctions(String names)
Deprecated.- Specified by:
getMemberFunctionsin interfaceICompilableTypeInternal
-
resolveRelativeInnerClass
public IType resolveRelativeInnerClass(String strRelativeInnerClassName, boolean bForce)
Deprecated.- Specified by:
resolveRelativeInnerClassin interfaceIHasInnerClass
-
getEnclosingType
public IGosuClassInternal getEnclosingType()
Deprecated.- Specified by:
getEnclosingTypein interfaceICompilableType- Specified by:
getEnclosingTypein interfaceICompilableTypeInternal- Specified by:
getEnclosingTypein interfaceIType
-
getEnclosingNonBlockType
public IType getEnclosingNonBlockType()
Deprecated.- Specified by:
getEnclosingNonBlockTypein interfaceICompilableTypeInternal
-
getStaticProperty
public DynamicPropertySymbol getStaticProperty(String name)
Deprecated.- Specified by:
getStaticPropertyin interfaceICompilableTypeInternal
-
getMemberProperty
public DynamicPropertySymbol getMemberProperty(String name)
Deprecated.- Specified by:
getMemberPropertyin interfaceICompilableTypeInternal
-
getCapturedSymbols
public Map<String,ICapturedSymbol> getCapturedSymbols()
Deprecated.- Specified by:
getCapturedSymbolsin interfaceICompilableTypeInternal
-
getCapturedSymbol
public ICapturedSymbol getCapturedSymbol(String strName)
Deprecated.- Specified by:
getCapturedSymbolin interfaceICompilableTypeInternal
-
getMemberField
public VarStatement getMemberField(String charSequence)
Deprecated.- Specified by:
getMemberFieldin interfaceICompilableTypeInternal
-
isStatic
public boolean isStatic()
Deprecated.- Specified by:
isStaticin interfaceICompilableType
-
isAnonymous
public boolean isAnonymous()
Deprecated.- Specified by:
isAnonymousin interfaceICompilableType
-
getGenericType
public IType getGenericType()
Deprecated.- Specified by:
getGenericTypein interfaceIType
-
isInterface
public boolean isInterface()
Deprecated.- Specified by:
isInterfacein interfaceIType
-
getInterfaces
public IType[] getInterfaces()
Deprecated.- Specified by:
getInterfacesin interfaceIType
-
isParameterizedType
public boolean isParameterizedType()
Deprecated.- Specified by:
isParameterizedTypein interfaceIType
-
isGenericType
public boolean isGenericType()
Deprecated.- Specified by:
isGenericTypein interfaceIType
-
getParser
public IGosuParser getParser()
Deprecated.- Specified by:
getParserin interfaceICompilableType
-
addCapturedSymbol
public void addCapturedSymbol(ICapturedSymbol sym)
Deprecated.- Specified by:
addCapturedSymbolin interfaceICompilableTypeInternal
-
getGenericTypeVariables
public IGenericTypeVariable[] getGenericTypeVariables()
Deprecated.- Specified by:
getGenericTypeVariablesin interfaceIType
-
getParameterizedType
public IType getParameterizedType(IType... ofType)
Deprecated.- Specified by:
getParameterizedTypein interfaceIType
-
getTypeParameters
public IType[] getTypeParameters()
Deprecated.- Specified by:
getTypeParametersin interfaceIType
-
isPrimitive
public boolean isPrimitive()
Deprecated.- Specified by:
isPrimitivein interfaceIType
-
makeArrayInstance
public Object makeArrayInstance(int iLength)
Deprecated.- Specified by:
makeArrayInstancein interfaceIType
-
getArrayComponent
public Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
Deprecated.- Specified by:
getArrayComponentin interfaceIType- Throws:
IllegalArgumentExceptionArrayIndexOutOfBoundsException
-
setArrayComponent
public void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException
Deprecated.- Specified by:
setArrayComponentin interfaceIType- Throws:
IllegalArgumentExceptionArrayIndexOutOfBoundsException
-
getArrayLength
public int getArrayLength(Object array) throws IllegalArgumentException
Deprecated.- Specified by:
getArrayLengthin interfaceIType- Throws:
IllegalArgumentException
-
getComponentType
public IType getComponentType()
Deprecated.- Specified by:
getComponentTypein interfaceIType
-
isAssignableFrom
public boolean isAssignableFrom(IType type)
Deprecated.- Specified by:
isAssignableFromin interfaceIType
-
unloadTypeInfo
public void unloadTypeInfo()
Deprecated.- Specified by:
unloadTypeInfoin interfaceIType
-
readResolve
public Object readResolve() throws ObjectStreamException
Deprecated.- Specified by:
readResolvein interfaceIType- Throws:
ObjectStreamException
-
getModifiers
public int getModifiers()
Deprecated.- Specified by:
getModifiersin interfaceIType
-
isAbstract
public boolean isAbstract()
Deprecated.- Specified by:
isAbstractin interfaceIType
-
isDiscarded
public boolean isDiscarded()
Deprecated.- Specified by:
isDiscardedin interfaceIType
-
setDiscarded
public void setDiscarded(boolean bDiscarded)
Deprecated.- Specified by:
setDiscardedin interfaceIType
-
isCompoundType
public boolean isCompoundType()
Deprecated.- Specified by:
isCompoundTypein interfaceIType
-
getCompoundTypeComponents
public Set<IType> getCompoundTypeComponents()
Deprecated.- Specified by:
getCompoundTypeComponentsin interfaceIType
-
getInnerClass
public IType getInnerClass(CharSequence strTypeName)
Deprecated.- Specified by:
getInnerClassin interfaceIHasInnerClass
-
getDepth
public int getDepth()
Deprecated.- Specified by:
getDepthin interfaceICompilableTypeInternal
-
compileDeclarationsIfNeeded
public void compileDeclarationsIfNeeded()
Deprecated.- Specified by:
compileDeclarationsIfNeededin interfaceICompilableTypeInternal
-
compileDefinitionsIfNeeded
public void compileDefinitionsIfNeeded(boolean bForce)
Deprecated.- Specified by:
compileDefinitionsIfNeededin interfaceICompilableTypeInternal
-
compileHeaderIfNeeded
public void compileHeaderIfNeeded()
Deprecated.- Specified by:
compileHeaderIfNeededin interfaceICompilableTypeInternal
-
putClassMembers
public void putClassMembers(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)
Deprecated.- Specified by:
putClassMembersin interfaceICompilableTypeInternal
-
putClassMembers
public void putClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic)
Deprecated.- Specified by:
putClassMembersin interfaceICompilableTypeInternal
-
isCreateEditorParser
public boolean isCreateEditorParser()
Deprecated.- Specified by:
isCreateEditorParserin interfaceICompilableTypeInternal
-
getAnonymousInnerClassCount
public int getAnonymousInnerClassCount()
Deprecated.- Specified by:
getAnonymousInnerClassCountin interfaceICompilableTypeInternal
-
getGosuAnnotations
public List<? extends IGosuAnnotation> getGosuAnnotations()
Deprecated.- Specified by:
getGosuAnnotationsin interfaceICompilableTypeInternal
-
shouldFullyCompileAnnotations
public boolean shouldFullyCompileAnnotations()
Deprecated.- Specified by:
shouldFullyCompileAnnotationsin interfaceICompilableTypeInternal
-
getMemberFields
public List<? extends IVarStatement> getMemberFields()
Deprecated.- Specified by:
getMemberFieldsin interfaceICompilableTypeInternal
-
getStaticFields
public List<IVarStatement> getStaticFields()
Deprecated.- Specified by:
getStaticFieldsin interfaceICompilableTypeInternal
-
setExpression
public void setExpression(IExpression expression)
Deprecated.- Specified by:
setExpressionin interfaceIGosuFragment
-
createTypeInfo
protected GosuFragmentTypeInfo createTypeInfo()
Deprecated.
-
getExpression
public IExpression getExpression()
Deprecated.- Specified by:
getExpressionin interfaceIGosuFragment
-
isExternalSymbol
public boolean isExternalSymbol(String name)
Deprecated.- Specified by:
isExternalSymbolin interfaceIGosuFragment
-
evaluate
public Object evaluate(IExternalSymbolMap externalSymbols)
Deprecated.- Specified by:
evaluatein interfaceIGosuFragment
-
evaluateRoot
public Object evaluateRoot(IExternalSymbolMap externalSymbols)
Deprecated.- Specified by:
evaluateRootin interfaceIGosuFragment
-
getBackingClass
public Class getBackingClass()
Deprecated.- Specified by:
getBackingClassin interfaceIHasJavaClass
-
getBackingClassInfo
public IJavaClassInfo getBackingClassInfo()
Deprecated.- Specified by:
getBackingClassInfoin interfaceIJavaBackedTypeData
-
getRelativeName
public String getRelativeName()
Deprecated.- Specified by:
getRelativeNamein interfaceIType
-
getNamespace
public String getNamespace()
Deprecated.- Specified by:
getNamespacein interfaceIType
-
getDisplayName
public String getDisplayName()
Deprecated.- Specified by:
getDisplayNamein interfaceIType
-
getSupertype
public IType getSupertype()
Deprecated.- Specified by:
getSupertypein interfaceIType
-
getAllTypesInHierarchy
public Set<? extends IType> getAllTypesInHierarchy()
Deprecated.- Specified by:
getAllTypesInHierarchyin interfaceIType
-
getExternalSymbol
public ISymbol getExternalSymbol(String strName)
Deprecated.- Specified by:
getExternalSymbolin interfaceICompilableType
-
getSource
public String getSource()
Deprecated.- Specified by:
getSourcein interfaceICompilableTypeInternal
-
getParseInfo
public GosuClassParseInfo getParseInfo()
Deprecated.- Specified by:
getParseInfoin interfaceICompilableTypeInternal
-
hasAssertions
public boolean hasAssertions()
Deprecated.- Specified by:
hasAssertionsin interfaceICompilableTypeInternal
-
getClassType
public ClassType getClassType()
Deprecated.- Specified by:
getClassTypein interfaceIFileRepositoryBasedType
-
getInnerClasses
public List<? extends IType> getInnerClasses()
Deprecated.- Specified by:
getInnerClassesin interfaceIHasInnerClass
-
getLoadedInnerClasses
public List<? extends IType> getLoadedInnerClasses()
Deprecated.- Specified by:
getLoadedInnerClassesin interfaceIHasInnerClass
-
isCompilable
public boolean isCompilable()
Deprecated.- Specified by:
isCompilablein interfaceIType
-
-