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
Deprecated.
DO NOT USE THIS CLASS! This is here exclusively for PCF types.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionDeprecated.private LockingLazyVar<IType>Deprecated.private List<IGosuClass>Deprecated.private booleanDeprecated.private IExpressionDeprecated.Deprecated.private LockingLazyVar<IJavaClassInfo>Deprecated.private StringDeprecated.private LockingLazyVar<FragmentInstance>Deprecated.private ITypeDeprecated.private GosuFragmentTypeInfoDeprecated.private ITypeUsesMapDeprecated.private static final IType[]Deprecated.private static final IGenericTypeVariable[]Deprecated.static final StringDeprecated.Fields inherited from interface gw.lang.reflect.gs.IGosuFragment
FRAGMENT_PACKAGEFields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST -
Constructor Summary
ConstructorsConstructorDescriptionGosuFragment(String name, HashMap<String, ISymbol> externalSymbols, ITypeUsesMap typeUsesMap) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBlock(IBlockClass block) Deprecated.voidDeprecated.voidassignTypeUsesMap(GosuParser parser) Deprecated.byte[]compile()Deprecated.voidDeprecated.voidcompileDefinitionsIfNeeded(boolean bForce) Deprecated.voidDeprecated.private FragmentInstanceDeprecated.protected GosuFragmentTypeInfoDeprecated.private IJavaClassInfoDeprecated.evaluate(IExternalSymbolMap externalSymbols) Deprecated.evaluateRoot(IExternalSymbolMap externalSymbols) Deprecated.Deprecated.Returns a Set of all IIntrinsicTypes that this class is assignable from, including this class.intDeprecated.getArrayComponent(Object array, int iIndex) Deprecated.Returns the value of the indexed component in the specified array object.intgetArrayLength(Object array) Deprecated.Returns the length of the specified array object.Deprecated.Make an array type from this type.Deprecated.Deprecated.getBlock(int i) Deprecated.intDeprecated.getCapturedSymbol(String strName) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.If this is an array type, a type representing the component type of the array.Deprecated.intgetDepth()Deprecated.Deprecated.The display name of this intrinsic type.Deprecated.Deprecated.Returns the type immediately enclosing this type.Deprecated.getExternalSymbol(String strName) Deprecated.Deprecated.If this is a parameterized type, returns the generic type this type parameterizes.Deprecated.Returns an array of GenericTypeVariables declared with this Generic Type.List<? extends IGosuAnnotation>Deprecated.getInnerClass(CharSequence strTypeName) Deprecated.returns the appropriate inner classDeprecated.IType[]Deprecated.Deprecated.getMemberField(String charSequence) Deprecated.List<? extends IVarStatement>Deprecated.getMemberFunctions(String names) Deprecated.getMemberProperty(String name) Deprecated.intDeprecated.Returns the modifiers for this type, encoded in an integer.getName()Deprecated.The fully qualified name of this intrinsic type.Deprecated.The namespace for this class.getParameterizedType(IType... ofType) Deprecated.Assuming this intrinsic type is a Generic type, return the parameterized type associated with the given list of type parameters.Deprecated.Deprecated.Deprecated.The relative or unqualified name.Deprecated.Deprecated.Deprecated.getStaticProperty(String name) Deprecated.Deprecated.Returns the type representing the supertype of this type.Deprecated.Get the type information for this intrinsic type.Deprecated.Returns the type loader responsible for loading this intrinsic type.IType[]Deprecated.If this is a parameterized type, returns the specific types used to create this type, null otherwies.Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanisArray()Deprecated.True if this is an array.booleanisAssignableFrom(IType type) Deprecated.Determines if the type represented by this intrinsic type is either the same as, or is a super-type of the type represented by the specified type parameter.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.True if this type has been replaced with a newer version of the same name in the type system.booleanisEnum()Deprecated.Returns true if this type is an enumeration.booleanisExternalSymbol(String name) Deprecated.booleanisFinal()Deprecated.True if this type cannot be extended.booleanDeprecated.Returns true if this ia a Generic Type.booleanDeprecated.Returns true if this type is an interface.booleanDeprecated.Are intances of this type mutable? Note sometimes it's difficult to determine.booleanDeprecated.Returns true if this ia a Parameterized Type.booleanDeprecated.True if this type represents a primitive type e.g., Java int, char, etc.booleanisStatic()Deprecated.booleanisValid()Deprecated.Defines this type if it is not yet fully defined.makeArrayInstance(int iLength) Deprecated.Construct an array instance of specified length.voidputClassMembers(GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic) Deprecated.voidputClassMembers(GosuClassTypeLoader loader, GosuParser owner, ISymbolTable table, IGosuClassInternal gsContextClass, boolean bStatic) Deprecated.Deprecated.IType requires this method be implemented to ensure IType instances can be centrally defined and cached.voidremoveBlock(IBlockClass block) Deprecated.resolveRelativeInnerClass(String strRelativeInnerClassName, boolean bForce) Deprecated.voidsetArrayComponent(Object array, int iIndex, Object value) Deprecated.Sets the value of the indexed component in the specified array object.voidsetDiscarded(boolean bDiscarded) Deprecated.voidsetExpression(IExpression expression) Deprecated.booleanDeprecated.toString()Deprecated.voidDeprecated.Unload or nullify any references to this IType's ITypeInfo.Methods inherited from class gw.lang.reflect.AbstractType
getLiteralMetaType, getMetaType, getTheRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.parser.IFileRepositoryBasedType
getJavaNameMethods inherited from interface gw.lang.reflect.IType
getFunctionalInterface, getLiteralMetaType, getMetaType, getSourceFiles, isDynamic
-
Field Details
-
FRAGMENT_NAME_PREFIX
Deprecated.- See Also:
-
EMTPY_TYPE_VARIABLE_ARRAY
Deprecated. -
EMTPY_TYPE_ARRAY
Deprecated. -
_blocks
Deprecated. -
_typeInfo
Deprecated. -
_discarded
private boolean _discardedDeprecated. -
_typeUsesMap
Deprecated. -
_arrayType
Deprecated. -
_expression
Deprecated. -
_name
Deprecated. -
_externalSymbols
Deprecated. -
_supertype
Deprecated. -
_allTypesInHierarchy
Deprecated. -
_javaClass
Deprecated.
-
-
Constructor Details
-
GosuFragment
Deprecated.
-
-
Method Details
-
getBlockCount
public int getBlockCount()Deprecated.- Specified by:
getBlockCountin interfaceICompilableTypeInternal
-
addBlock
Deprecated.- Specified by:
addBlockin interfaceICompilableTypeInternal
-
removeBlock
Deprecated.- Specified by:
removeBlockin interfaceICompilableTypeInternal
-
getBlock
Deprecated.- Specified by:
getBlockin interfaceICompilableType
-
getTypeInfo
Deprecated.Description copied from interface:ITypeGet the type information for this intrinsic type.- Specified by:
getTypeInfoin interfaceICompilableType- Specified by:
getTypeInfoin interfaceIType- See Also:
-
isFinal
public boolean isFinal()Deprecated.Description copied from interface:ITypeTrue if this type cannot be extended. -
getTypeLoader
Deprecated.Description copied from interface:ITypeReturns the type loader responsible for loading this intrinsic type.- Specified by:
getTypeLoaderin interfaceICompilableType- Specified by:
getTypeLoaderin interfaceIType
-
getTypeUsesMap
Deprecated.- Specified by:
getTypeUsesMapin interfaceICompilableType
-
assignTypeUsesMap
Deprecated.- Specified by:
assignTypeUsesMapin interfaceICompilableTypeInternal
-
isValid
public boolean isValid()Deprecated.Description copied from interface:ITypeDefines this type if it is not yet fully defined. For instance, if this type has source code associated with it, it must fully compile the source for it to be fully defined. -
getArrayType
Deprecated.Description copied from interface:ITypeMake an array type from this type. E.g., String -> String[]- Specified by:
getArrayTypein interfaceIType
-
getSourceFileHandle
Deprecated.- Specified by:
getSourceFileHandlein interfaceIFileRepositoryBasedType
-
getClassStatement
Deprecated.- Specified by:
getClassStatementin interfaceICompilableType
-
getMemberFunctions
Deprecated.- Specified by:
getMemberFunctionsin interfaceICompilableTypeInternal
-
resolveRelativeInnerClass
Deprecated.- Specified by:
resolveRelativeInnerClassin interfaceIHasInnerClass
-
getEnclosingType
Deprecated.Description copied from interface:ITypeReturns the type immediately enclosing this type. If this type is not enclosed, returns null.- Specified by:
getEnclosingTypein interfaceICompilableType- Specified by:
getEnclosingTypein interfaceICompilableTypeInternal- Specified by:
getEnclosingTypein interfaceIType
-
getEnclosingNonBlockType
Deprecated.- Specified by:
getEnclosingNonBlockTypein interfaceICompilableTypeInternal
-
getStaticProperty
Deprecated.- Specified by:
getStaticPropertyin interfaceICompilableTypeInternal
-
getMemberProperty
Deprecated.- Specified by:
getMemberPropertyin interfaceICompilableTypeInternal
-
getCapturedSymbols
Deprecated.- Specified by:
getCapturedSymbolsin interfaceICompilableTypeInternal
-
getCapturedSymbol
Deprecated.- Specified by:
getCapturedSymbolin interfaceICompilableTypeInternal
-
getMemberField
Deprecated.- Specified by:
getMemberFieldin interfaceICompilableTypeInternal
-
isStatic
public boolean isStatic()Deprecated.- Specified by:
isStaticin interfaceICompilableType
-
isAnonymous
public boolean isAnonymous()Deprecated.- Specified by:
isAnonymousin interfaceICompilableType
-
getGenericType
Deprecated.Description copied from interface:ITypeIf this is a parameterized type, returns the generic type this type parameterizes. Otherwise, returns null.- Specified by:
getGenericTypein interfaceIType
-
isInterface
public boolean isInterface()Deprecated.Description copied from interface:ITypeReturns true if this type is an interface.- Specified by:
isInterfacein interfaceIType
-
isEnum
public boolean isEnum()Deprecated.Description copied from interface:ITypeReturns true if this type is an enumeration. -
getInterfaces
Deprecated.- Specified by:
getInterfacesin interfaceIType- Returns:
- If this is a class, returns a list of all the interfaces this type implements. Similarly, if this is an interface, returns a list of all the interfaces this type extends. In any case, returns an empty list if this type neither implements nor extends interfaces.
-
isParameterizedType
public boolean isParameterizedType()Deprecated.Description copied from interface:ITypeReturns true if this ia a Parameterized Type. Note a Parameterzied Type is not the same as a Generic Type. The difference is that a Parameterized Type is a concrete version of a Generic Type. For instance, the class ArrayListis a Generic Type, while the class ArrayList is a Parameterized Type of the the Generic Type ArrayList . - Specified by:
isParameterizedTypein interfaceIType
-
isGenericType
public boolean isGenericType()Deprecated.Description copied from interface:ITypeReturns true if this ia a Generic Type.- Specified by:
isGenericTypein interfaceIType- See Also:
-
getParser
Deprecated.- Specified by:
getParserin interfaceICompilableType
-
addCapturedSymbol
Deprecated.- Specified by:
addCapturedSymbolin interfaceICompilableTypeInternal
-
getGenericTypeVariables
Deprecated.Description copied from interface:ITypeReturns an array of GenericTypeVariables declared with this Generic Type. Otherwise, returns null if this is not a Generic Type.- Specified by:
getGenericTypeVariablesin interfaceIType
-
getParameterizedType
Deprecated.Description copied from interface:ITypeAssuming this intrinsic type is a Generic type, return the parameterized type associated with the given list of type parameters. If the type has not been created yet, creates the parameterized type. Successive calls to this method having identical parameter types must return the identical parameterized type.- Specified by:
getParameterizedTypein interfaceIType- Parameters:
ofType- The type parameters.- Returns:
- The concrete type associated with the type parameters.
-
getTypeParameters
Deprecated.Description copied from interface:ITypeIf this is a parameterized type, returns the specific types used to create this type, null otherwies.- Specified by:
getTypeParametersin interfaceIType
-
isArray
public boolean isArray()Deprecated.Description copied from interface:ITypeTrue if this is an array. -
isPrimitive
public boolean isPrimitive()Deprecated.Description copied from interface:ITypeTrue if this type represents a primitive type e.g., Java int, char, etc.- Specified by:
isPrimitivein interfaceIType
-
makeArrayInstance
Deprecated.Description copied from interface:ITypeConstruct an array instance of specified length.- Specified by:
makeArrayInstancein interfaceIType
-
getArrayComponent
public Object getArrayComponent(Object array, int iIndex) throws IllegalArgumentException, ArrayIndexOutOfBoundsException Deprecated.Description copied from interface:ITypeReturns the value of the indexed component in the specified array object.- Specified by:
getArrayComponentin interfaceIType- Parameters:
array- An array instance of this intrinsic type.iIndex- The index of the component to get.- Returns:
- The value of the indexed component in the specified array.
- Throws:
IllegalArgumentException- If the specified object is not an array.ArrayIndexOutOfBoundsException- If the specified index argument is negative, or if it is greater than or equal to the length of the specified array
-
setArrayComponent
public void setArrayComponent(Object array, int iIndex, Object value) throws IllegalArgumentException, ArrayIndexOutOfBoundsException Deprecated.Description copied from interface:ITypeSets the value of the indexed component in the specified array object.- Specified by:
setArrayComponentin interfaceIType- Parameters:
array- An array instance of this intrinsic type.iIndex- The index of the component to set.value- The new value of the indexed component.- Throws:
IllegalArgumentException- If the specified object is not an array.ArrayIndexOutOfBoundsException- If the specified index argument is negative, or if it is greater than or equal to the length of the specified array
-
getArrayLength
Deprecated.Description copied from interface:ITypeReturns the length of the specified array object.- Specified by:
getArrayLengthin interfaceIType- Parameters:
array- An array instance of this intrinsic type.- Returns:
- The length of the array.
- Throws:
IllegalArgumentException- If the object argument is not an array.
-
getComponentType
Deprecated.Description copied from interface:ITypeIf this is an array type, a type representing the component type of the array. Otherwise null.- Specified by:
getComponentTypein interfaceIType
-
isAssignableFrom
Deprecated.Description copied from interface:ITypeDetermines if the type represented by this intrinsic type is either the same as, or is a super-type of the type represented by the specified type parameter.- Specified by:
isAssignableFromin interfaceIType
-
isMutable
public boolean isMutable()Deprecated.Description copied from interface:ITypeAre intances of this type mutable? Note sometimes it's difficult to determine. For instance, java classes don't contain any information about mutability. In which case we always assume mutable, even when the underlying type may in fact be immutable. E.g., even though java.lang.String is not mutable, its corresponding JavaIntrinsicType will say it is. -
unloadTypeInfo
public void unloadTypeInfo()Deprecated.Description copied from interface:ITypeUnload or nullify any references to this IType's ITypeInfo.- Specified by:
unloadTypeInfoin interfaceIType
-
readResolve
Deprecated.Description copied from interface:ITypeIType requires this method be implemented to ensure IType instances can be centrally defined and cached.- Specified by:
readResolvein interfaceIType- Throws:
ObjectStreamException
-
getModifiers
public int getModifiers()Deprecated.Description copied from interface:ITypeReturns the modifiers for this type, encoded in an integer. The modifiers consist of the constants forpublic,protected,private,final,static,abstractthey should be decoded using the methods of classModifier.- Specified by:
getModifiersin interfaceIType- See Also:
-
isAbstract
public boolean isAbstract()Deprecated.- Specified by:
isAbstractin interfaceIType
-
isDiscarded
public boolean isDiscarded()Deprecated.Description copied from interface:ITypeTrue if this type has been replaced with a newer version of the same name in the type system.- 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
Deprecated.- Specified by:
getCompoundTypeComponentsin interfaceIType
-
getInnerClass
Deprecated.Description copied from interface:IHasInnerClassreturns the appropriate inner class- Specified by:
getInnerClassin interfaceIHasInnerClass- Returns:
-
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
Deprecated.- Specified by:
getGosuAnnotationsin interfaceICompilableTypeInternal
-
shouldFullyCompileAnnotations
public boolean shouldFullyCompileAnnotations()Deprecated.- Specified by:
shouldFullyCompileAnnotationsin interfaceICompilableTypeInternal
-
getMemberFields
Deprecated.- Specified by:
getMemberFieldsin interfaceICompilableTypeInternal
-
getStaticFields
Deprecated.- Specified by:
getStaticFieldsin interfaceICompilableTypeInternal
-
setExpression
Deprecated.- Specified by:
setExpressionin interfaceIGosuFragment
-
createTypeInfo
Deprecated. -
getExpression
Deprecated.- Specified by:
getExpressionin interfaceIGosuFragment
-
isExternalSymbol
Deprecated.- Specified by:
isExternalSymbolin interfaceIGosuFragment
-
evaluate
Deprecated.- Specified by:
evaluatein interfaceIGosuFragment
-
evaluateRoot
Deprecated.- Specified by:
evaluateRootin interfaceIGosuFragment
-
getBackingClass
Deprecated.- Specified by:
getBackingClassin interfaceIHasJavaClass
-
getBackingClassInfo
Deprecated.- Specified by:
getBackingClassInfoin interfaceIJavaBackedTypeData
-
getRelativeName
Deprecated.Description copied from interface:ITypeThe relative or unqualified name. For a class this should be just the class name without the package name.- Specified by:
getRelativeNamein interfaceIType
-
getName
Deprecated.Description copied from interface:ITypeThe fully qualified name of this intrinsic type. -
getNamespace
Deprecated.Description copied from interface:ITypeThe namespace for this class. For a java class this will be the package, while for other types of intrinsic types it could be another logical name.- Specified by:
getNamespacein interfaceIType
-
getDisplayName
Deprecated.Description copied from interface:ITypeThe display name of this intrinsic type. Often this is simply the same asIType.getName(), but in some cases a type may want to modify it's name for presentation to the user.- Specified by:
getDisplayNamein interfaceIType
-
getSupertype
Deprecated.Description copied from interface:ITypeReturns the type representing the supertype of this type. Returns null if this type has no supertype.- Specified by:
getSupertypein interfaceIType
-
getAllTypesInHierarchy
Deprecated.Description copied from interface:ITypeReturns a Set of all IIntrinsicTypes that this class is assignable from, including this class. This includes implemented interfaces and superclasses, recursively up the hieararchy. For array types, this will be a Set of all types that its component type is assignable from.- Specified by:
getAllTypesInHierarchyin interfaceIType
-
getExternalSymbol
Deprecated.- Specified by:
getExternalSymbolin interfaceICompilableType
-
createNewInstance
Deprecated. -
defineClass
Deprecated. -
getSource
Deprecated.- Specified by:
getSourcein interfaceICompilableTypeInternal
-
getParseInfo
Deprecated.- Specified by:
getParseInfoin interfaceICompilableTypeInternal
-
hasAssertions
public boolean hasAssertions()Deprecated.- Specified by:
hasAssertionsin interfaceICompilableTypeInternal
-
getClassType
Deprecated.- Specified by:
getClassTypein interfaceIFileRepositoryBasedType
-
getInnerClasses
Deprecated.- Specified by:
getInnerClassesin interfaceIHasInnerClass
-
getLoadedInnerClasses
Deprecated.- Specified by:
getLoadedInnerClassesin interfaceIHasInnerClass
-
toString
Deprecated. -
isCompilable
public boolean isCompilable()Deprecated.- Specified by:
isCompilablein interfaceIType
-
compile
public byte[] compile()Deprecated.
-