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
public class PropertiesType extends TypeBase implements IPropertiesType
Type based on aPropertyNode
- See Also:
- Serialized Form
-
-
Field Summary
-
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
Constructors Constructor Description PropertiesType(PropertiesTypeLoader typeLoader, PropertyNode propertyNode, IFile file)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
findOffsetOf(PropertyNode node)
String
getCachedContent()
ClassType
getClassType()
IType
getInnerClass(CharSequence strTypeName)
returns the appropriate inner classList<? extends IType>
getInnerClasses()
IType[]
getInterfaces()
List<? extends IType>
getLoadedInnerClasses()
int
getModifiers()
Returns the modifiers for this type, encoded in an integer.String
getName()
The fully qualified name of this intrinsic type.String
getNamespace()
The namespace for this class.String
getPropertiesFileKey(IPropertyInfo pi)
String
getRelativeName()
The relative or unqualified name.ISourceFileHandle
getSourceFileHandle()
IFile[]
getSourceFiles()
IType
getSupertype()
Returns the type representing the supertype of this type.ITypeInfo
getTypeInfo()
Get the type information for this intrinsic type.ITypeLoader
getTypeLoader()
Returns the type loader responsible for loading this intrinsic type.boolean
isMutable()
Are intances of this type mutable?IType
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
-
-
-
-
Constructor Detail
-
PropertiesType
public PropertiesType(PropertiesTypeLoader typeLoader, PropertyNode propertyNode, IFile file)
-
-
Method Detail
-
getInterfaces
public IType[] 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:
Modifier
-
getName
public String getName()
Description copied from interface:IType
The fully qualified name of this intrinsic type.
-
getNamespace
public String 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
public String 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
public IType 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
public ITypeInfo getTypeInfo()
Description copied from interface:IType
Get the type information for this intrinsic type.- Specified by:
getTypeInfo
in interfaceIType
- See Also:
ITypeInfo
-
getTypeLoader
public ITypeLoader 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.
-
getPropertiesFileKey
public String getPropertiesFileKey(IPropertyInfo pi)
- Specified by:
getPropertiesFileKey
in interfaceIPropertiesType
-
getSourceFiles
public IFile[] getSourceFiles()
- Specified by:
getSourceFiles
in interfaceIType
-
findOffsetOf
public int findOffsetOf(PropertyNode node)
-
getCachedContent
public String getCachedContent()
-
getInnerClass
public IType getInnerClass(CharSequence strTypeName)
Description copied from interface:IHasInnerClass
returns the appropriate inner class- Specified by:
getInnerClass
in interfaceIHasInnerClass
- Returns:
-
getInnerClasses
public List<? extends IType> getInnerClasses()
- Specified by:
getInnerClasses
in interfaceIHasInnerClass
-
getLoadedInnerClasses
public List<? extends IType> getLoadedInnerClasses()
- Specified by:
getLoadedInnerClasses
in interfaceIHasInnerClass
-
resolveRelativeInnerClass
public IType resolveRelativeInnerClass(String strTypeName, boolean bForce)
- Specified by:
resolveRelativeInnerClass
in interfaceIHasInnerClass
-
getSourceFileHandle
public ISourceFileHandle getSourceFileHandle()
- Specified by:
getSourceFileHandle
in interfaceIFileRepositoryBasedType
-
getClassType
public ClassType getClassType()
- Specified by:
getClassType
in interfaceIFileRepositoryBasedType
-
-