Package gw.internal.gosu.parser
Class JavaMethodInfo
- java.lang.Object
-
- gw.lang.reflect.BaseFeatureInfo
-
- gw.internal.gosu.parser.JavaBaseFeatureInfo
-
- gw.internal.gosu.parser.JavaMethodInfo
-
- All Implemented Interfaces:
JavaHasParams,ICanHaveAnnotationDefault,IAnnotatedFeatureInfo,IAttributedFeatureInfo,IFeatureInfo,IGenericMethodInfo,IHasParameterInfos,IMethodInfo,IOptionalParamCapable,IJavaMethodInfo
public class JavaMethodInfo extends JavaBaseFeatureInfo implements IJavaMethodInfo
-
-
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 JavaMethodInfo(IFeatureInfo container, IJavaMethodDescriptor md, boolean forceHidden)
-
Method Summary
-
Methods inherited from class gw.internal.gosu.parser.JavaBaseFeatureInfo
makeDeprecated
-
Methods inherited from class gw.lang.reflect.BaseFeatureInfo
getAnnotation, getAnnotations, getAnnotationsOfType, getContainer, getOwnersType, getParamTypes, getSuperAnnotatedElements, hasAnnotation, hasDeclaredAnnotation, isInternalAPI, isReified, isScriptable
-
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, hasAnnotation, hasDeclaredAnnotation
-
Methods inherited from interface gw.lang.reflect.IAttributedFeatureInfo
isReified, isScriptable
-
Methods inherited from interface gw.lang.reflect.IFeatureInfo
getContainer, getOwnersType
-
-
-
-
Constructor Detail
-
JavaMethodInfo
public JavaMethodInfo(IFeatureInfo container, IJavaMethodDescriptor md, boolean forceHidden)
- Parameters:
container- Typically this will be the containing ITypeInfomd- The method descriptor (from BeanInfo)
-
-
Method Detail
-
getParameters
public IParameterInfo[] getParameters()
- Specified by:
getParametersin interfaceIHasParameterInfos- Specified by:
getParametersin interfaceIMethodInfo
-
getReturnType
public IType getReturnType()
- Specified by:
getReturnTypein interfaceIMethodInfo
-
addEnclosingTypeParams
public static TypeVarToTypeMap addEnclosingTypeParams(IType declaringClass, TypeVarToTypeMap actualParamByVarName)
-
getDeclaredAnnotations
public List<IAnnotationInfo> getDeclaredAnnotations()
- Specified by:
getDeclaredAnnotationsin interfaceIAnnotatedFeatureInfo- Overrides:
getDeclaredAnnotationsin classJavaBaseFeatureInfo
-
getTypeVariables
public IGenericTypeVariable[] getTypeVariables()
- Specified by:
getTypeVariablesin interfaceIGenericMethodInfo
-
getParameterizedReturnType
public IType getParameterizedReturnType(IType... typeParams)
- Specified by:
getParameterizedReturnTypein interfaceIGenericMethodInfo
-
getParameterizedParameterTypes
public IType[] getParameterizedParameterTypes(IType... typeParams)
- Specified by:
getParameterizedParameterTypesin interfaceIGenericMethodInfo
-
getParameterizedParameterTypes2
public IType[] getParameterizedParameterTypes2(IType ownersType, IType... typeParams)
- Specified by:
getParameterizedParameterTypes2in interfaceIGenericMethodInfo
-
inferTypeParametersFromArgumentTypes
public TypeVarToTypeMap inferTypeParametersFromArgumentTypes(IType... argTypes)
- Specified by:
inferTypeParametersFromArgumentTypesin interfaceIGenericMethodInfo
-
inferTypeParametersFromArgumentTypes2
public TypeVarToTypeMap inferTypeParametersFromArgumentTypes2(IType owningParameterizedType, IType... argTypes)
- Specified by:
inferTypeParametersFromArgumentTypes2in interfaceIGenericMethodInfo
-
getCallHandler
public IMethodCallHandler getCallHandler()
- Specified by:
getCallHandlerin interfaceIMethodInfo
-
getReturnDescription
public String getReturnDescription()
- Specified by:
getReturnDescriptionin interfaceIMethodInfo
-
getExceptions
public List<IExceptionInfo> getExceptions()
- Specified by:
getExceptionsin interfaceIMethodInfo
-
getName
public String getName()
- Specified by:
getNamein interfaceIFeatureInfo- Specified by:
getNamein interfaceIMethodInfo
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayNamein interfaceIFeatureInfo- Overrides:
getDisplayNamein classBaseFeatureInfo
-
getShortDescription
public String getShortDescription()
- Specified by:
getShortDescriptionin interfaceIJavaMethodInfo
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceIFeatureInfo- Overrides:
getDescriptionin classBaseFeatureInfo
-
isHidden
public boolean isHidden()
- Specified by:
isHiddenin interfaceIAttributedFeatureInfo- Overrides:
isHiddenin classJavaBaseFeatureInfo
-
isDefaultEnumFeature
protected boolean isDefaultEnumFeature()
- Specified by:
isDefaultEnumFeaturein classJavaBaseFeatureInfo
-
isVisible
public boolean isVisible(IScriptabilityModifier constraint)
- Specified by:
isVisiblein interfaceIAttributedFeatureInfo- Overrides:
isVisiblein classJavaBaseFeatureInfo
-
isStatic
public boolean isStatic()
- Specified by:
isStaticin interfaceIAttributedFeatureInfo
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivatein interfaceIAttributedFeatureInfo- Overrides:
isPrivatein classBaseFeatureInfo
-
isInternal
public boolean isInternal()
- Specified by:
isInternalin interfaceIAttributedFeatureInfo- Overrides:
isInternalin classBaseFeatureInfo
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfaceIAttributedFeatureInfo- Overrides:
isProtectedin classBaseFeatureInfo
-
isPublic
public boolean isPublic()
- Specified by:
isPublicin interfaceIAttributedFeatureInfo- Overrides:
isPublicin classBaseFeatureInfo
-
isAbstract
public boolean isAbstract()
- Specified by:
isAbstractin interfaceIAttributedFeatureInfo- Overrides:
isAbstractin classBaseFeatureInfo
-
isFinal
public boolean isFinal()
- Specified by:
isFinalin interfaceIAttributedFeatureInfo- Overrides:
isFinalin classBaseFeatureInfo
-
isDefaultImpl
public boolean isDefaultImpl()
- Specified by:
isDefaultImplin interfaceIAnnotatedFeatureInfo- Overrides:
isDefaultImplin classBaseFeatureInfo
-
isDeprecated
public boolean isDeprecated()
- Specified by:
isDeprecatedin interfaceIAnnotatedFeatureInfo- Overrides:
isDeprecatedin classBaseFeatureInfo
-
getDeprecatedReason
public String getDeprecatedReason()
- Specified by:
getDeprecatedReasonin interfaceIAnnotatedFeatureInfo- Overrides:
getDeprecatedReasonin classBaseFeatureInfo
-
hasAnnotationDefault
public boolean hasAnnotationDefault()
- Specified by:
hasAnnotationDefaultin interfaceICanHaveAnnotationDefault
-
getAnnotationDefault
public Object getAnnotationDefault()
- Specified by:
getAnnotationDefaultin interfaceICanHaveAnnotationDefault
-
getDefaultValueExpressions
public IExpression[] getDefaultValueExpressions()
- Specified by:
getDefaultValueExpressionsin interfaceIOptionalParamCapable
-
getParameterNames
public String[] getParameterNames()
- Specified by:
getParameterNamesin interfaceIOptionalParamCapable
-
getMethod
public IJavaClassMethod getMethod()
- Specified by:
getMethodin interfaceIJavaMethodInfo
-
toString
public String toString()
- Overrides:
toStringin classBaseFeatureInfo
-
getAnnotatedElement
protected IJavaAnnotatedElement getAnnotatedElement()
- Specified by:
getAnnotatedElementin classJavaBaseFeatureInfo
-
isVisibleViaFeatureDescriptor
protected boolean isVisibleViaFeatureDescriptor(IScriptabilityModifier constraint)
- Specified by:
isVisibleViaFeatureDescriptorin classJavaBaseFeatureInfo
-
isHiddenViaFeatureDescriptor
protected boolean isHiddenViaFeatureDescriptor()
- Specified by:
isHiddenViaFeatureDescriptorin classJavaBaseFeatureInfo
-
getDocsForParam
public IDocRef<IParamNode> getDocsForParam(int paramIndex)
- Specified by:
getDocsForParamin interfaceJavaHasParams
-
getMethodDocs
public IDocRef<IMethodNode> getMethodDocs()
- Specified by:
getMethodDocsin interfaceIJavaMethodInfo
-
getRawMethod
public Method getRawMethod()
- Specified by:
getRawMethodin interfaceIJavaMethodInfo
-
getModifiers
public int getModifiers()
- Specified by:
getModifiersin interfaceIJavaMethodInfo
-
getLocationInfo
public ILocationInfo getLocationInfo()
- Specified by:
getLocationInfoin interfaceIFeatureInfo
-
-