Class PropertiesTypeInfo

java.lang.Object
gw.lang.reflect.BaseFeatureInfo
gw.lang.reflect.BaseTypeInfo
gw.internal.gosu.properties.PropertiesTypeInfo
All Implemented Interfaces:
IAnnotatedFeatureInfo, IAttributedFeatureInfo, IFeatureInfo, ITypeInfo

public class PropertiesTypeInfo extends BaseTypeInfo
Type info based on a PropertyNode
  • Field Details

  • Constructor Details

  • Method Details

    • getMethods

      public MethodList getMethods()
      Specified by:
      getMethods in interface ITypeInfo
      Overrides:
      getMethods in class BaseTypeInfo
      Returns:
      An unmodifiable random access list of IMethodInfo instances. The list is sorted ascending by name. Returns an empty list if there are no methods.
    • getCallableMethod

      public IMethodInfo getCallableMethod(CharSequence strMethod, IType... params)
      Description copied from interface: ITypeInfo
      Returns a IMethodInfo matching the specified name and has parameter types that produce the best match.

      If there is a tie with method names then this will throw an illegal argument exception.

      Specified by:
      getCallableMethod in interface ITypeInfo
      Overrides:
      getCallableMethod in class BaseTypeInfo
      Parameters:
      strMethod - The name of the method to find.
      params - Represents the exact number, order, and type of parameters in the method. A null value here is treated as an empty array.
      Returns:
      A IMethodInfo matching the name and parameter types.
    • getMethod

      public IMethodInfo getMethod(CharSequence methodName, IType... params)
      Description copied from interface: ITypeInfo
      Returns a IMethodInfo matching the specified name and parameter types or null if no match is found.

      Note params must exactly match those of the target method in number, order, and type. If null, params is treated as an empty array.

      Specified by:
      getMethod in interface ITypeInfo
      Overrides:
      getMethod in class BaseTypeInfo
      Parameters:
      methodName - The name of the method to find.
      params - Represents the exact number, order, and type of parameters in the method. A null value here is treated as an empty array.
      Returns:
      A IMethodInfo matching the name and parameter types.
    • getProperties

      public List<? extends IPropertyInfo> getProperties()
      Specified by:
      getProperties in interface ITypeInfo
      Overrides:
      getProperties in class BaseTypeInfo
      Returns:
      An unmodifiable random access list of IPropertyInfo instances. The list is sorted ascending by name. Returns an empty list if there are no properties.
    • getProperty

      public IPropertyInfo getProperty(CharSequence propName)
      Description copied from interface: ITypeInfo
      Get a property mapped to the specified name.
      Specified by:
      getProperty in interface ITypeInfo
      Overrides:
      getProperty in class BaseTypeInfo
      Parameters:
      propName - The property name.
      Returns:
      An IPropertyInfo corresponding to the property name.
    • isStatic

      public boolean isStatic()
      Description copied from interface: IAttributedFeatureInfo
      True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.
      Specified by:
      isStatic in interface IAttributedFeatureInfo
      Overrides:
      isStatic in class BaseTypeInfo
    • createMethodInfos

      private MethodList createMethodInfos(PropertyNode node)
    • createGetValueByNameMethod

      private IMethodInfo createGetValueByNameMethod(PropertyNode node)
    • createGetValueMethod

      private IMethodInfo createGetValueMethod(PropertyNode node)