Package gw.internal.gosu.parser
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
IAnnotatedFeatureInfo.IAnnotationInfoHelper
-
Nested classes/interfaces inherited from interface gw.lang.reflect.IAttributedFeatureInfo
IAttributedFeatureInfo.MODIFIER
-
-
Field Summary
-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Constructor Summary
Constructors Constructor Description JavaBaseFeatureInfo(IFeatureInfo container)
JavaBaseFeatureInfo(IType intrType)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract IJavaAnnotatedElement
getAnnotatedElement()
List<IAnnotationInfo>
getDeclaredAnnotations()
protected abstract boolean
isDefaultEnumFeature()
boolean
isHidden()
True if this feature is hidden.protected abstract boolean
isHiddenViaFeatureDescriptor()
boolean
isVisible(IScriptabilityModifier constraint)
Determine if this feature is visible given a visibility constraint.protected abstract boolean
isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
protected Deprecated
makeDeprecated(String reason)
-
Methods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDeprecatedReason, getDescription, getDisplayName, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isAbstract, isDefaultImpl, isDeprecated, isFinal, isInternal, isInternalAPI, isPrivate, isProtected, isPublic, isReified, isScriptable, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isStatic
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getLocationInfo, getName
-
-
-
-
Constructor Detail
-
JavaBaseFeatureInfo
public JavaBaseFeatureInfo(IFeatureInfo container)
-
JavaBaseFeatureInfo
public JavaBaseFeatureInfo(IType intrType)
-
-
Method Detail
-
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.- Specified by:
isVisible
in interfaceIAttributedFeatureInfo
- Overrides:
isVisible
in classBaseFeatureInfo
-
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 interfaceIAttributedFeatureInfo
- Overrides:
isHidden
in classBaseFeatureInfo
-
makeDeprecated
protected Deprecated makeDeprecated(String reason)
-
isDefaultEnumFeature
protected abstract boolean isDefaultEnumFeature()
-
-