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.IAnnotationInfoHelperNested 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.booleanbooleanisHidden()True if this feature is hidden.booleanisVisible(IScriptabilityModifier constraint) Determine if this feature is visible given a visibility constraint.private voidMethods 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, hasAnnotation, hasDeclaredAnnotation, isDefaultImplMethods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isAbstract, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isScriptable, isStaticMethods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getName
-
Field Details
-
_declaredAnnotations
-
-
Constructor Details
-
GosuBaseAttributedFeatureInfo
-
-
Method Details
-
getGosuAnnotations
-
getDeclaredAnnotations
- Specified by:
getDeclaredAnnotationsin 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:
isDeprecatedin interfaceIAnnotatedFeatureInfo- Overrides:
isDeprecatedin classBaseFeatureInfo- Returns:
- True if this feature is deprecated.
-
getDeprecatedReason
- Specified by:
getDeprecatedReasonin interfaceIAnnotatedFeatureInfo- Overrides:
getDeprecatedReasonin classBaseFeatureInfo- Returns:
- The deprecation message, or null if the feature is not deprecated.
-
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
-
isVisible
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
-
getOwnersType
Description copied from interface:IFeatureInfoGet 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:
getOwnersTypein interfaceIFeatureInfo- Overrides:
getOwnersTypein classBaseFeatureInfo
-
getActualTypeInContainer
-