Package gw.internal.gosu.parser
Class GosuBaseAttributedFeatureInfo
java.lang.Object
gw.lang.reflect.BaseFeatureInfo
gw.internal.gosu.parser.GosuBaseAttributedFeatureInfo
- All Implemented Interfaces:
IAnnotatedFeatureInfo
,IAttributedFeatureInfo
,IFeatureInfo
- Direct Known Subclasses:
AbstractGenericMethodInfo
,GosuMethodParamInfo
,GosuPropertyInfo
,GosuVarPropertyInfo
public abstract class GosuBaseAttributedFeatureInfo
extends BaseFeatureInfo
implements IAttributedFeatureInfo
-
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
FieldsFields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetActualTypeInContainer
(IFeatureInfo container, IType type) protected abstract List<IGosuAnnotation>
Get this feature's owner's type.boolean
boolean
isHidden()
True if this feature is hidden.boolean
isVisible
(IScriptabilityModifier constraint) Determine if this feature is visible given a visibility constraint.private void
Methods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDescription, getDisplayName, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isAbstract, isDefaultImpl, 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.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isAbstract, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isScriptable, isStatic
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getName
-
Field Details
-
_declaredAnnotations
-
-
Constructor Details
-
GosuBaseAttributedFeatureInfo
-
-
Method Details
-
getGosuAnnotations
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotations
in interfaceIAnnotatedFeatureInfo
- 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.
-
maybeInitAnnotations
private void maybeInitAnnotations() -
isDeprecated
public boolean isDeprecated()- Specified by:
isDeprecated
in interfaceIAnnotatedFeatureInfo
- Overrides:
isDeprecated
in classBaseFeatureInfo
- Returns:
- True if this feature is deprecated.
-
getDeprecatedReason
- Specified by:
getDeprecatedReason
in interfaceIAnnotatedFeatureInfo
- Overrides:
getDeprecatedReason
in classBaseFeatureInfo
- Returns:
- The deprecation message, or null if the feature is not deprecated.
-
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
-
isVisible
Description copied from interface:IAttributedFeatureInfo
Determine if this feature is visible given a visibility constraint.- Specified by:
isVisible
in interfaceIAttributedFeatureInfo
- Overrides:
isVisible
in classBaseFeatureInfo
-
getOwnersType
Description copied from interface:IFeatureInfo
Get this feature's owner's type. If this feature has no owner, this is the type of the feature itself. Typically, the only kind of feature w/o an owner is an ITypeInfo, so properties, methods, params, etc. s/b considered owned. Hence, ultimately an ITypeInfo's type will be the owner's type for any given feature.- Specified by:
getOwnersType
in interfaceIFeatureInfo
- Overrides:
getOwnersType
in classBaseFeatureInfo
-
getActualTypeInContainer
-