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 a PropertyNode
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • getInterfaces

      public IType[] getInterfaces()
      Specified by:
      getInterfaces in interface IType
      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 for public, protected, private, final, static, abstract they should be decoded using the methods of class Modifier.
      Specified by:
      getModifiers in interface IType
      Overrides:
      getModifiers in class TypeBase
      See Also:
    • getName

      public String getName()
      Description copied from interface: IType
      The fully qualified name of this intrinsic type.
      Specified by:
      getName in interface IType
    • 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 interface IType
    • 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 interface IType
    • 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 interface IType
    • getTypeInfo

      public ITypeInfo getTypeInfo()
      Description copied from interface: IType
      Get the type information for this intrinsic type.
      Specified by:
      getTypeInfo in interface IType
      See Also:
    • getTypeLoader

      public ITypeLoader getTypeLoader()
      Description copied from interface: IType
      Returns the type loader responsible for loading this intrinsic type.
      Specified by:
      getTypeLoader in interface IType
    • 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.
      Specified by:
      isMutable in interface IType
      Overrides:
      isMutable in class TypeBase
      Returns:
      True if this type is mutable.
    • getPropertyNode

      PropertyNode getPropertyNode()
    • getPropertiesFileKey

      public String getPropertiesFileKey(IPropertyInfo pi)
      Specified by:
      getPropertiesFileKey in interface IPropertiesType
    • getSourceFiles

      public IFile[] getSourceFiles()
      Specified by:
      getSourceFiles in interface IType
    • 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 interface IHasInnerClass
      Returns:
    • getInnerClasses

      public List<? extends IType> getInnerClasses()
      Specified by:
      getInnerClasses in interface IHasInnerClass
    • getLoadedInnerClasses

      public List<? extends IType> getLoadedInnerClasses()
      Specified by:
      getLoadedInnerClasses in interface IHasInnerClass
    • resolveRelativeInnerClass

      public IType resolveRelativeInnerClass(String strTypeName, boolean bForce)
      Specified by:
      resolveRelativeInnerClass in interface IHasInnerClass
    • getSourceFileHandle

      public ISourceFileHandle getSourceFileHandle()
      Specified by:
      getSourceFileHandle in interface IFileRepositoryBasedType
    • getClassType

      public ClassType getClassType()
      Specified by:
      getClassType in interface IFileRepositoryBasedType