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,java.io.Serializable
public class PropertiesType extends TypeBase implements IPropertiesType
Type based on aPropertyNode- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String_contentCachedprivate IFile_fileprivate ISourceFileHandle_fileHandleprivate LockingLazyVar<java.util.List<IPropertiesType>>_innerClassesprivate PropertyNode_propertyNodeprivate LockingLazyVar<PropertiesTypeInfo>_typeInfoprivate PropertiesTypeLoader_typeLoader-
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 intfindOffsetOf(PropertyNode node)java.lang.StringgetCachedContent()ClassTypegetClassType()ITypegetInnerClass(java.lang.CharSequence strTypeName)returns the appropriate inner classjava.util.List<? extends IType>getInnerClasses()IType[]getInterfaces()java.util.List<? extends IType>getLoadedInnerClasses()intgetModifiers()Returns the modifiers for this type, encoded in an integer.java.lang.StringgetName()The fully qualified name of this intrinsic type.java.lang.StringgetNamespace()The namespace for this class.java.lang.StringgetPropertiesFileKey(IPropertyInfo pi)(package private) PropertyNodegetPropertyNode()java.lang.StringgetRelativeName()The relative or unqualified name.ISourceFileHandlegetSourceFileHandle()IFile[]getSourceFiles()ITypegetSupertype()Returns the type representing the supertype of this type.ITypeInfogetTypeInfo()Get the type information for this intrinsic type.ITypeLoadergetTypeLoader()Returns the type loader responsible for loading this intrinsic type.booleanisMutable()Are intances of this type mutable? Note sometimes it's difficult to determine.ITyperesolveRelativeInnerClass(java.lang.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 Detail
-
_typeLoader
private final PropertiesTypeLoader _typeLoader
-
_propertyNode
private final PropertyNode _propertyNode
-
_file
private IFile _file
-
_fileHandle
private ISourceFileHandle _fileHandle
-
_contentCached
private java.lang.String _contentCached
-
_typeInfo
private final LockingLazyVar<PropertiesTypeInfo> _typeInfo
-
_innerClasses
private final LockingLazyVar<java.util.List<IPropertiesType>> _innerClasses
-
-
Constructor Detail
-
PropertiesType
public PropertiesType(PropertiesTypeLoader typeLoader, PropertyNode propertyNode, IFile file)
-
-
Method Detail
-
getInterfaces
public IType[] getInterfaces()
- 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.
-
getModifiers
public int getModifiers()
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- Overrides:
getModifiersin classTypeBase- See Also:
Modifier
-
getName
public java.lang.String getName()
Description copied from interface:ITypeThe fully qualified name of this intrinsic type.
-
getNamespace
public java.lang.String getNamespace()
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
-
getRelativeName
public java.lang.String getRelativeName()
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
-
getSupertype
public IType getSupertype()
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
-
getTypeInfo
public ITypeInfo getTypeInfo()
Description copied from interface:ITypeGet the type information for this intrinsic type.- Specified by:
getTypeInfoin interfaceIType- See Also:
ITypeInfo
-
getTypeLoader
public ITypeLoader getTypeLoader()
Description copied from interface:ITypeReturns the type loader responsible for loading this intrinsic type.- Specified by:
getTypeLoaderin interfaceIType
-
isMutable
public boolean isMutable()
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.
-
getPropertyNode
PropertyNode getPropertyNode()
-
getPropertiesFileKey
public java.lang.String getPropertiesFileKey(IPropertyInfo pi)
- Specified by:
getPropertiesFileKeyin interfaceIPropertiesType
-
getSourceFiles
public IFile[] getSourceFiles()
- Specified by:
getSourceFilesin interfaceIType
-
findOffsetOf
public int findOffsetOf(PropertyNode node)
-
getCachedContent
public java.lang.String getCachedContent()
-
getInnerClass
public IType getInnerClass(java.lang.CharSequence strTypeName)
Description copied from interface:IHasInnerClassreturns the appropriate inner class- Specified by:
getInnerClassin interfaceIHasInnerClass- Returns:
-
getInnerClasses
public java.util.List<? extends IType> getInnerClasses()
- Specified by:
getInnerClassesin interfaceIHasInnerClass
-
getLoadedInnerClasses
public java.util.List<? extends IType> getLoadedInnerClasses()
- Specified by:
getLoadedInnerClassesin interfaceIHasInnerClass
-
resolveRelativeInnerClass
public IType resolveRelativeInnerClass(java.lang.String strTypeName, boolean bForce)
- Specified by:
resolveRelativeInnerClassin interfaceIHasInnerClass
-
getSourceFileHandle
public ISourceFileHandle getSourceFileHandle()
- Specified by:
getSourceFileHandlein interfaceIFileRepositoryBasedType
-
getClassType
public ClassType getClassType()
- Specified by:
getClassTypein interfaceIFileRepositoryBasedType
-
-