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 Stringprivate IFileprivate ISourceFileHandleprivate final LockingLazyVar<List<IPropertiesType>>private final PropertyNodeprivate final LockingLazyVar<PropertiesTypeInfo>private final PropertiesTypeLoaderFields inherited from class gw.lang.reflect.TypeBase
_arrayComponentClassFields 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 TypeMethodDescriptionintfindOffsetOf(PropertyNode node) getInnerClass(CharSequence strTypeName) returns the appropriate inner classIType[]intReturns 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) PropertyNodeThe 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.booleanAre 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, unloadTypeInfoMethods 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
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:
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:
-
getName
Description copied from interface:ITypeThe fully qualified name of this intrinsic type. -
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
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
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
Description copied from interface:ITypeGet the type information for this intrinsic type.- Specified by:
getTypeInfoin interfaceIType- See Also:
-
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
- Specified by:
getPropertiesFileKeyin interfaceIPropertiesType
-
getSourceFiles
- Specified by:
getSourceFilesin interfaceIType
-
findOffsetOf
-
getCachedContent
-
getInnerClass
Description copied from interface:IHasInnerClassreturns the appropriate inner class- Specified by:
getInnerClassin interfaceIHasInnerClass- Returns:
-
getInnerClasses
- Specified by:
getInnerClassesin interfaceIHasInnerClass
-
getLoadedInnerClasses
- Specified by:
getLoadedInnerClassesin interfaceIHasInnerClass
-
resolveRelativeInnerClass
- Specified by:
resolveRelativeInnerClassin interfaceIHasInnerClass
-
getSourceFileHandle
- Specified by:
getSourceFileHandlein interfaceIFileRepositoryBasedType
-
getClassType
- Specified by:
getClassTypein interfaceIFileRepositoryBasedType
-