Class JavaBaseFeatureInfo

java.lang.Object
gw.lang.reflect.BaseFeatureInfo
gw.internal.gosu.parser.JavaBaseFeatureInfo
All Implemented Interfaces:
IAnnotatedFeatureInfo, IAttributedFeatureInfo, IFeatureInfo
Direct Known Subclasses:
JavaConstructorInfo, JavaFieldPropertyInfo, JavaMethodInfo, JavaPropertyInfo, JavaTypeInfo

public abstract class JavaBaseFeatureInfo extends BaseFeatureInfo
  • Constructor Details

    • JavaBaseFeatureInfo

      public JavaBaseFeatureInfo(IFeatureInfo container)
    • JavaBaseFeatureInfo

      public JavaBaseFeatureInfo(IType intrType)
  • Method Details

    • getAnnotatedElement

      protected abstract IJavaAnnotatedElement getAnnotatedElement()
    • getDeclaredAnnotations

      public List<IAnnotationInfo> getDeclaredAnnotations()
      Returns:
      A map of AnnotationInfo objects by type representing all the annotations associated with this feature, or an empty map if there are no annotations.
    • isVisibleViaFeatureDescriptor

      protected abstract boolean isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
    • isHiddenViaFeatureDescriptor

      protected abstract boolean isHiddenViaFeatureDescriptor()
    • isVisible

      public boolean isVisible(IScriptabilityModifier constraint)
      Description copied from interface: IAttributedFeatureInfo
      Determine if this feature is visible given a visibility constraint.

      NOTE: implementers of this method are responsible for handling the null case, taken to mean that there are not scriptability constraints.

      Specified by:
      isVisible in interface IAttributedFeatureInfo
      Overrides:
      isVisible in class BaseFeatureInfo
    • isHidden

      public boolean isHidden()
      Description copied from interface: IAttributedFeatureInfo
      True if this feature is hidden. Hidden feature should not to be exposed to earthlings.
      Specified by:
      isHidden in interface IAttributedFeatureInfo
      Overrides:
      isHidden in class BaseFeatureInfo
    • isProxyClassCompiling

      private boolean isProxyClassCompiling()
    • makeDeprecated

      protected Deprecated makeDeprecated(String reason)
    • isDefaultEnumFeature

      protected abstract boolean isDefaultEnumFeature()