Package gw.internal.gosu.properties
Class PropertiesType
java.lang.Object
gw.lang.reflect.AbstractType
gw.lang.reflect.TypeBase
gw.internal.gosu.properties.PropertiesType
- All Implemented Interfaces:
IFileRepositoryBasedType
,IHasInnerClass
,IPropertiesType
,IType
,Serializable
Type based on a
PropertyNode
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private IFile
private ISourceFileHandle
private final LockingLazyVar<List<IPropertiesType>>
private final PropertyNode
private final LockingLazyVar<PropertiesTypeInfo>
private final PropertiesTypeLoader
Fields inherited from class gw.lang.reflect.TypeBase
_arrayComponentClass
Fields inherited from interface gw.lang.reflect.IType
EMPTY_ARRAY, EMPTY_TYPE_ARRAY, EMPTY_TYPE_LIST
-
Constructor Summary
ConstructorsConstructorDescriptionPropertiesType
(PropertiesTypeLoader typeLoader, PropertyNode propertyNode, IFile file) -
Method Summary
Modifier and TypeMethodDescriptionint
findOffsetOf
(PropertyNode node) getInnerClass
(CharSequence strTypeName) returns the appropriate inner classIType[]
int
Returns the modifiers for this type, encoded in an integer.getName()
The fully qualified name of this intrinsic type.The namespace for this class.(package private) PropertyNode
The relative or unqualified name.IFile[]
Returns the type representing the supertype of this type.Get the type information for this intrinsic type.Returns the type loader responsible for loading this intrinsic type.boolean
Are intances of this type mutable? Note sometimes it's difficult to determine.resolveRelativeInnerClass
(String strTypeName, boolean bForce) Methods inherited from class gw.lang.reflect.TypeBase
getAllClassesInClassHierarchyAsIntrinsicTypes, getAllTypesInHierarchy, getArrayComponent, getArrayComponentClass, getArrayLength, getArrayType, getArrayVersionsOfEachType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getGenericType, getGenericTypeVariables, getParameterizedType, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompoundType, isDiscarded, isEnum, isFinal, isGenericType, isInterface, isParameterizedType, isPrimitive, isValid, loadAllTypesInHierarchy, loadJavaType, makeArrayInstance, makeArrayType, readResolve, setArrayComponent, setDiscarded, toString, unloadTypeInfo
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
compile, getAllTypesInHierarchy, getArrayComponent, getArrayLength, getArrayType, getComponentType, getCompoundTypeComponents, getDisplayName, getEnclosingType, getFunctionalInterface, getGenericType, getGenericTypeVariables, getLiteralMetaType, getMetaType, getParameterizedType, getTypeParameters, isAbstract, isArray, isAssignableFrom, isCompilable, isCompoundType, isDiscarded, isDynamic, isEnum, isFinal, isGenericType, isInterface, isParameterizedType, isPrimitive, isValid, makeArrayInstance, readResolve, setArrayComponent, setDiscarded, unloadTypeInfo
-
Field Details
-
_typeLoader
-
_propertyNode
-
_file
-
_fileHandle
-
_contentCached
-
_typeInfo
-
_innerClasses
-
-
Constructor Details
-
PropertiesType
-
-
Method Details
-
getInterfaces
- Specified by:
getInterfaces
in 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.
-
getModifiers
public int getModifiers()Description copied from interface:IType
Returns the modifiers for this type, encoded in an integer. The modifiers consist of the constants forpublic
,protected
,private
,final
,static
,abstract
they should be decoded using the methods of classModifier
.- Specified by:
getModifiers
in interfaceIType
- Overrides:
getModifiers
in classTypeBase
- See Also:
-
getName
Description copied from interface:IType
The fully qualified name of this intrinsic type. -
getNamespace
Description copied from interface:IType
The 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:
getNamespace
in interfaceIType
-
getRelativeName
Description copied from interface:IType
The relative or unqualified name. For a class this should be just the class name without the package name.- Specified by:
getRelativeName
in interfaceIType
-
getSupertype
Description copied from interface:IType
Returns the type representing the supertype of this type. Returns null if this type has no supertype.- Specified by:
getSupertype
in interfaceIType
-
getTypeInfo
Description copied from interface:IType
Get the type information for this intrinsic type.- Specified by:
getTypeInfo
in interfaceIType
- See Also:
-
getTypeLoader
Description copied from interface:IType
Returns the type loader responsible for loading this intrinsic type.- Specified by:
getTypeLoader
in interfaceIType
-
isMutable
public boolean isMutable()Description copied from interface:IType
Are 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. -
getPropertyNode
PropertyNode getPropertyNode() -
getPropertiesFileKey
- Specified by:
getPropertiesFileKey
in interfaceIPropertiesType
-
getSourceFiles
- Specified by:
getSourceFiles
in interfaceIType
-
findOffsetOf
-
getCachedContent
-
getInnerClass
Description copied from interface:IHasInnerClass
returns the appropriate inner class- Specified by:
getInnerClass
in interfaceIHasInnerClass
- Returns:
-
getInnerClasses
- Specified by:
getInnerClasses
in interfaceIHasInnerClass
-
getLoadedInnerClasses
- Specified by:
getLoadedInnerClasses
in interfaceIHasInnerClass
-
resolveRelativeInnerClass
- Specified by:
resolveRelativeInnerClass
in interfaceIHasInnerClass
-
getSourceFileHandle
- Specified by:
getSourceFileHandle
in interfaceIFileRepositoryBasedType
-
getClassType
- Specified by:
getClassType
in interfaceIFileRepositoryBasedType
-