Package gw.lang.reflect
Class SimpleMethodInfo
java.lang.Object
gw.lang.reflect.BaseFeatureInfo
gw.lang.reflect.SimpleMethodInfo
- All Implemented Interfaces:
IAnnotatedFeatureInfo
,IAttributedFeatureInfo
,IFeatureInfo
,IHasParameterInfos
,IMethodInfo
-
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
FieldsModifier and TypeFieldDescriptionprivate IMethodCallHandler
private ArrayList<IExceptionInfo>
private IJavaClassMethod
private ScriptabilityModifier
private IParameterInfo[]
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleMethodInfo
(ScriptabilityModifier modifier, IJavaClassInfo clazz, String methodName, IJavaClassInfo... paramTypes) -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Gets the programmatic name or identifier of this feature.boolean
isStatic()
True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.boolean
isVisible
(IScriptabilityModifier constraint) Determine if this feature is visible given a visibility constraint.Methods inherited from class gw.lang.reflect.BaseFeatureInfo
compactAndLockList, getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDeprecatedReason, getDescription, getDisplayName, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isAbstract, isDefaultImpl, isDeprecated, isFinal, isHidden, 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, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isAbstract, isFinal, isHidden, isInternal, isPrivate, isProtected, isPublic, isReified, isScriptable
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getOwnersType
-
Field Details
-
_method
-
_modifier
-
_exceptions
-
_callHandler
-
_paramInfo
-
-
Constructor Details
-
SimpleMethodInfo
public SimpleMethodInfo(ScriptabilityModifier modifier, IJavaClassInfo clazz, String methodName, IJavaClassInfo... paramTypes)
-
-
Method Details
-
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.
-
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
-
isStatic
public boolean isStatic()Description copied from interface:IAttributedFeatureInfo
True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.- Specified by:
isStatic
in interfaceIAttributedFeatureInfo
-
getName
Description copied from interface:IFeatureInfo
Gets the programmatic name or identifier of this feature. Note this name should follow Java identifier naming conventions (alpha-num and underscores, but can't start with a digit).- Specified by:
getName
in interfaceIFeatureInfo
- Specified by:
getName
in interfaceIMethodInfo
-
getParameters
- Specified by:
getParameters
in interfaceIHasParameterInfos
- Specified by:
getParameters
in interfaceIMethodInfo
-
getReturnType
- Specified by:
getReturnType
in interfaceIMethodInfo
-
getCallHandler
- Specified by:
getCallHandler
in interfaceIMethodInfo
-
getReturnDescription
- Specified by:
getReturnDescription
in interfaceIMethodInfo
-
getExceptions
- Specified by:
getExceptions
in interfaceIMethodInfo
-