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 IJavaAnnotatedElementgetAnnotatedElement()java.util.List<IAnnotationInfo>getDeclaredAnnotations()protected abstract booleanisDefaultEnumFeature()booleanisHidden()True if this feature is hidden.protected abstract booleanisHiddenViaFeatureDescriptor()private booleanisProxyClassCompiling()booleanisVisible(IScriptabilityModifier constraint)Determine if this feature is visible given a visibility constraint.protected abstract booleanisVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)protected DeprecatedmakeDeprecated(java.lang.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 java.util.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:IAttributedFeatureInfoDetermine 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:
isVisiblein interfaceIAttributedFeatureInfo- Overrides:
isVisiblein classBaseFeatureInfo
-
isHidden
public boolean isHidden()
Description copied from interface:IAttributedFeatureInfoTrue if this feature is hidden. Hidden feature should not to be exposed to earthlings.- Specified by:
isHiddenin interfaceIAttributedFeatureInfo- Overrides:
isHiddenin classBaseFeatureInfo
-
isProxyClassCompiling
private boolean isProxyClassCompiling()
-
makeDeprecated
protected Deprecated makeDeprecated(java.lang.String reason)
-
isDefaultEnumFeature
protected abstract boolean isDefaultEnumFeature()
-
-