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
public class SimpleMethodInfo extends BaseFeatureInfo implements 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
Fields Modifier and Type Field Description private IMethodCallHandler_callHandlerprivate java.util.ArrayList<IExceptionInfo>_exceptionsprivate IJavaClassMethod_methodprivate ScriptabilityModifier_modifierprivate IParameterInfo[]_paramInfo-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Constructor Summary
Constructors Constructor Description SimpleMethodInfo(ScriptabilityModifier modifier, IJavaClassInfo clazz, java.lang.String methodName, IJavaClassInfo... paramTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMethodCallHandlergetCallHandler()java.util.List<IAnnotationInfo>getDeclaredAnnotations()java.util.List<IExceptionInfo>getExceptions()java.lang.StringgetName()Gets the programmatic name or identifier of this feature.IParameterInfo[]getParameters()java.lang.StringgetReturnDescription()ITypegetReturnType()booleanisStatic()True if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.booleanisVisible(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 Detail
-
_method
private IJavaClassMethod _method
-
_modifier
private ScriptabilityModifier _modifier
-
_exceptions
private java.util.ArrayList<IExceptionInfo> _exceptions
-
_callHandler
private IMethodCallHandler _callHandler
-
_paramInfo
private IParameterInfo[] _paramInfo
-
-
Constructor Detail
-
SimpleMethodInfo
public SimpleMethodInfo(ScriptabilityModifier modifier, IJavaClassInfo clazz, java.lang.String methodName, IJavaClassInfo... paramTypes)
-
-
Method Detail
-
getDeclaredAnnotations
public java.util.List<IAnnotationInfo> 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.
-
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
-
isStatic
public boolean isStatic()
Description copied from interface:IAttributedFeatureInfoTrue if this feature is static, meaning the feature is not specific to a particular instance of the feature's containing type.- Specified by:
isStaticin interfaceIAttributedFeatureInfo
-
getName
public java.lang.String getName()
Description copied from interface:IFeatureInfoGets 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:
getNamein interfaceIFeatureInfo- Specified by:
getNamein interfaceIMethodInfo
-
getParameters
public IParameterInfo[] getParameters()
- Specified by:
getParametersin interfaceIHasParameterInfos- Specified by:
getParametersin interfaceIMethodInfo
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnTypein interfaceIMethodInfo
-
getCallHandler
public IMethodCallHandler getCallHandler()
- Specified by:
getCallHandlerin interfaceIMethodInfo
-
getReturnDescription
public java.lang.String getReturnDescription()
- Specified by:
getReturnDescriptionin interfaceIMethodInfo
-
getExceptions
public java.util.List<IExceptionInfo> getExceptions()
- Specified by:
getExceptionsin interfaceIMethodInfo
-
-