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
,Comparable
public class GosuMethodInfo extends AbstractGenericMethodInfo implements IGosuMethodInfo
-
-
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 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 int
compareTo(Object o)
boolean
equals(Object o)
Object
getAnnotationDefault()
IGosuMethodInfo
getBackingMethodInfo()
IMethodCallHandler
getCallHandler()
IExpression[]
getDefaultValueExpressions()
protected List<IGosuAnnotation>
getGosuAnnotations()
static Method
getMethod(Class<?> clazz, String strName, Class[] argClasses)
String[]
getParameterNames()
String
getReturnDescription()
IType
getReturnType()
boolean
hasAnnotationDefault()
int
hashCode()
boolean
isMethodForProperty()
String
toString()
-
Methods inherited from class gw.internal.gosu.parser.AbstractGenericMethodInfo
ensureInferredTypeAssignableToBoundingType, getArgs, getDescription, getDfs, getDisplayName, getExceptions, 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
-
-
-
-
Constructor Detail
-
GosuMethodInfo
public GosuMethodInfo(IFeatureInfo container, DynamicFunctionSymbol dfs)
-
-
Method Detail
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnType
in interfaceIMethodInfo
-
getCallHandler
public IMethodCallHandler getCallHandler()
- Specified by:
getCallHandler
in interfaceIMethodInfo
-
getReturnDescription
public String getReturnDescription()
- Specified by:
getReturnDescription
in interfaceIMethodInfo
-
getDefaultValueExpressions
public IExpression[] getDefaultValueExpressions()
- Specified by:
getDefaultValueExpressions
in 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 String[] getParameterNames()
- Specified by:
getParameterNames
in interfaceIOptionalParamCapable
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in interfaceComparable
-
isMethodForProperty
public boolean isMethodForProperty()
- Specified by:
isMethodForProperty
in interfaceIGosuMethodInfo
-
getBackingMethodInfo
public IGosuMethodInfo getBackingMethodInfo()
- Specified by:
getBackingMethodInfo
in interfaceIGosuMethodInfo
-
toString
public String toString()
- Overrides:
toString
in classBaseFeatureInfo
-
getGosuAnnotations
protected List<IGosuAnnotation> getGosuAnnotations()
- Overrides:
getGosuAnnotations
in classAbstractGenericMethodInfo
-
hasAnnotationDefault
public boolean hasAnnotationDefault()
- Specified by:
hasAnnotationDefault
in interfaceICanHaveAnnotationDefault
-
getAnnotationDefault
public Object getAnnotationDefault()
- Specified by:
getAnnotationDefault
in interfaceICanHaveAnnotationDefault
-
-