Package gw.internal.gosu.dynamic
Class DynamicMethodInfo
- java.lang.Object
-
- gw.lang.reflect.MethodInfoBase
-
- gw.internal.gosu.dynamic.DynamicMethodInfo
-
- All Implemented Interfaces:
IAnnotatedFeatureInfo,IAttributedFeatureInfo,IFeatureInfo,IHasParameterInfos,IMethodCallHandler,IMethodInfo
public class DynamicMethodInfo extends MethodInfoBase implements IMethodCallHandler
-
-
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 IParameterInfo[]_paramInfosprivate IType[]_paramTypesprivate java.lang.String_strName-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDynamicMethodInfo(ITypeInfo container, java.lang.String strName, IType... paramTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IMethodCallHandlergetCallHandler()java.util.List<IAnnotationInfo>getDeclaredAnnotations()java.lang.StringgetName()Gets the programmatic name or identifier of this feature.IParameterInfo[]getParameters()ITypegetReturnType()java.lang.ObjecthandleCall(java.lang.Object ctx, java.lang.Object... args)private voidmakeParameters()-
Methods inherited from class gw.lang.reflect.MethodInfoBase
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getDeprecatedReason, getDescription, getDisplayName, getExceptions, getOwnersType, getReturnDescription, hasAnnotation, hasDeclaredAnnotation, isAbstract, isDefaultImpl, isDeprecated, isFinal, isHidden, isInternal, isPrivate, isProtected, isPublic, isScriptable, isStatic, isVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isReified
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getLocationInfo
-
-
-
-
Field Detail
-
_strName
private java.lang.String _strName
-
_paramTypes
private IType[] _paramTypes
-
_paramInfos
private IParameterInfo[] _paramInfos
-
-
Method Detail
-
makeParameters
private void makeParameters()
-
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
-
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
-
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.
-
handleCall
public java.lang.Object handleCall(java.lang.Object ctx, java.lang.Object... args)- Specified by:
handleCallin interfaceIMethodCallHandler
-
-