Package gw.internal.gosu.parser
Class GosuMethodInfo
- java.lang.Object
-
- gw.lang.reflect.BaseFeatureInfo
-
- gw.internal.gosu.parser.GosuBaseAttributedFeatureInfo
-
- gw.internal.gosu.parser.AbstractGenericMethodInfo
-
- gw.internal.gosu.parser.GosuMethodInfo
-
- All Implemented Interfaces:
ICanHaveAnnotationDefault,IGosuMethodInfo,IAnnotatedFeatureInfo,IAttributedFeatureInfo,IDFSBackedFeatureInfo,IFeatureInfo,IGenericMethodInfo,IHasParameterInfos,IMethodInfo,IOptionalParamCapable,java.lang.Comparable
public class GosuMethodInfo extends AbstractGenericMethodInfo implements IGosuMethodInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classGosuMethodInfo.GosuMethodCallHandlerprivate classGosuMethodInfo.ReflectiveMethodCallHandler-
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 IType_returnType-
Fields inherited from class gw.internal.gosu.parser.GosuBaseAttributedFeatureInfo
_declaredAnnotations
-
Fields inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
ANNOTATION_HELPER
-
-
Constructor Summary
Constructors Constructor Description GosuMethodInfo(IFeatureInfo container, DynamicFunctionSymbol dfs)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)booleanequals(java.lang.Object o)java.lang.ObjectgetAnnotationDefault()IGosuMethodInfogetBackingMethodInfo()IMethodCallHandlergetCallHandler()IExpression[]getDefaultValueExpressions()protected java.util.List<IGosuAnnotation>getGosuAnnotations()static java.lang.reflect.MethodgetMethod(java.lang.Class<?> clazz, java.lang.String strName, java.lang.Class[] argClasses)java.lang.String[]getParameterNames()java.lang.StringgetReturnDescription()ITypegetReturnType()booleanhasAnnotationDefault()inthashCode()booleanisMethodForProperty()java.lang.StringtoString()-
Methods inherited from class gw.internal.gosu.parser.AbstractGenericMethodInfo
ensureInferredTypeAssignableToBoundingType, getArgs, getDescription, getDfs, getDisplayName, getExceptions, getGosuClass, getName, getParameterizedParameterTypes, getParameterizedParameterTypes2, getParameterizedReturnType, getParameters, getTypeVariables, inferTypeParametersFromArgumentTypes, inferTypeParametersFromArgumentTypes2, isAbstract, isDefaultImpl, isFinal, isInternal, isPrivate, isProtected, isPublic, isReified, isStatic
-
Methods inherited from class gw.internal.gosu.parser.GosuBaseAttributedFeatureInfo
getActualTypeInContainer, getDeclaredAnnotations, getDeprecatedReason, getOwnersType, isDeprecated, isHidden, isVisible
-
Methods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isInternalAPI, isScriptable
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface gw.lang.reflect.IAnnotatedFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getDeclaredAnnotations, getDeprecatedReason, hasAnnotation, hasDeclaredAnnotation, isDefaultImpl, isDeprecated
-
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isAbstract, isFinal, isHidden, isInternal, isPrivate, isProtected, isPublic, isReified, isScriptable, isStatic, isVisible
-
Methods inherited from interface gw.lang.reflect.IDFSBackedFeatureInfo
getDfs
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getDescription, getDisplayName, getLocationInfo, getOwnersType
-
Methods inherited from interface gw.lang.reflect.IGenericMethodInfo
getParameterizedParameterTypes, getParameterizedParameterTypes2, getParameterizedReturnType, getTypeVariables, inferTypeParametersFromArgumentTypes, inferTypeParametersFromArgumentTypes2
-
Methods inherited from interface gw.lang.reflect.gs.IGosuMethodInfo
getArgs
-
Methods inherited from interface gw.lang.reflect.IMethodInfo
getExceptions, getName, getParameters
-
-
-
-
Field Detail
-
_returnType
private IType _returnType
-
_callHandler
private IMethodCallHandler _callHandler
-
-
Constructor Detail
-
GosuMethodInfo
public GosuMethodInfo(IFeatureInfo container, DynamicFunctionSymbol dfs)
-
-
Method Detail
-
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
-
getDefaultValueExpressions
public IExpression[] getDefaultValueExpressions()
- Specified by:
getDefaultValueExpressionsin interfaceIOptionalParamCapable- Returns:
- An array of objects representing the default values for a function's parameters. Returns an empty array if there are no default values, otherwise returns an array corresponding with default parameter values. If a parameter does not have a default value, it's default value is null in the array.
-
getParameterNames
public java.lang.String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceIOptionalParamCapable
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
isMethodForProperty
public boolean isMethodForProperty()
- Specified by:
isMethodForPropertyin interfaceIGosuMethodInfo
-
getBackingMethodInfo
public IGosuMethodInfo getBackingMethodInfo()
- Specified by:
getBackingMethodInfoin interfaceIGosuMethodInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin classBaseFeatureInfo
-
getMethod
public static java.lang.reflect.Method getMethod(java.lang.Class<?> clazz, java.lang.String strName, java.lang.Class[] argClasses)
-
getGosuAnnotations
protected java.util.List<IGosuAnnotation> getGosuAnnotations()
- Overrides:
getGosuAnnotationsin classAbstractGenericMethodInfo
-
hasAnnotationDefault
public boolean hasAnnotationDefault()
- Specified by:
hasAnnotationDefaultin interfaceICanHaveAnnotationDefault
-
getAnnotationDefault
public java.lang.Object getAnnotationDefault()
- Specified by:
getAnnotationDefaultin interfaceICanHaveAnnotationDefault
-
-