public class JavaSourceMethod extends JavaSourceElement implements IJavaClassMethod, ITypeInfoResolver
| Modifier and Type | Field and Description |
|---|---|
protected JavaSourceType |
_containingClass |
protected IJavaClassType[] |
_genericParameterTypes |
protected IJavaClassType |
_genericReturnType |
protected com.sun.source.tree.MethodTree |
_method |
protected JavaSourceModifierList |
_modifierList |
protected JavaSourceParameter[] |
_parameters |
protected IJavaClassInfo[] |
_parameterTypes |
protected IJavaClassInfo |
_returnType |
protected IJavaClassTypeVariable[] |
_typeParameters |
| Constructor and Description |
|---|
JavaSourceMethod(com.sun.source.tree.MethodTree method,
JavaSourceType containingClass) |
findInnerSourceType, getCompilationUnitTree, getDeclaringClass, getEndPosition, getLocationInfo, getSourcePositions, getStartPositionclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetLocationInfoprotected com.sun.source.tree.MethodTree _method
protected JavaSourceType _containingClass
protected JavaSourceParameter[] _parameters
protected IJavaClassType _genericReturnType
protected JavaSourceModifierList _modifierList
protected IJavaClassTypeVariable[] _typeParameters
protected IJavaClassType[] _genericParameterTypes
protected IJavaClassInfo[] _parameterTypes
protected IJavaClassInfo _returnType
public JavaSourceMethod(com.sun.source.tree.MethodTree method,
JavaSourceType containingClass)
public IJavaClassInfo getReturnClassInfo()
getReturnClassInfo in interface IJavaClassMethodpublic IJavaClassType getGenericReturnType()
getGenericReturnType in interface IJavaClassMethodpublic String getReturnTypeName()
getReturnTypeName in interface IJavaClassMethodpublic IType getReturnType()
getReturnType in interface IJavaClassMethodpublic IJavaClassType[] getGenericParameterTypes()
getGenericParameterTypes in interface IJavaClassMethodpublic IJavaClassInfo[] getParameterTypes()
getParameterTypes in interface IJavaClassMethodpublic String getName()
getName in interface IJavaClassMethodpublic List<Parameter> getParameterInfos()
getParameterInfos in interface IJavaClassMethodpublic JavaSourceParameter[] getParameters()
public boolean isConstructor()
public com.sun.source.tree.Tree getTree()
getTree in class JavaSourceElementpublic JavaSourceType getEnclosingClass()
getEnclosingClass in interface IJavaAnnotatedElementgetEnclosingClass in class JavaSourceElementpublic int getModifiers()
getModifiers in interface IJavaClassMethodpublic IModifierList getModifierList()
public IJavaClassInfo[] getExceptionTypes()
getExceptionTypes in interface IJavaClassMethodpublic IJavaClassType resolveType(String relativeName, int ignoreFlags)
resolveType in interface ITypeInfoResolverpublic IJavaClassType resolveType(String relativeName, IJavaClassInfo whosAskin, int ignoreFlags)
resolveType in interface ITypeInfoResolverpublic IJavaClassType resolveImport(String relativeName)
resolveImport in interface ITypeInfoResolverpublic IModule getModule()
getModule in interface ITypeInfoResolverpublic boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface IJavaAnnotatedElementpublic IAnnotationInfo getAnnotation(Class annotationClass)
getAnnotation in interface IJavaAnnotatedElementpublic IAnnotationInfo[] getDeclaredAnnotations()
getDeclaredAnnotations in interface IJavaAnnotatedElementprotected IJavaClassInfo[] initParameterTypes()
protected IJavaClassType[] initGenericParameterTypes()
public Object getDefaultValue()
getDefaultValue in interface IJavaClassMethodpublic Object invoke(Object ctx, Object[] args) throws InvocationTargetException, IllegalAccessException
invoke in interface IJavaClassMethodInvocationTargetExceptionIllegalAccessExceptionpublic IJavaClassTypeVariable[] getTypeParameters()
public IGenericTypeVariable[] getTypeVariables(IJavaMethodInfo mi)
getTypeVariables in interface IJavaClassMethodpublic boolean isBridge()
isBridge in interface IJavaClassMethodpublic boolean isSynthetic()
isSynthetic in interface IJavaClassMethodpublic static JavaSourceMethod create(com.sun.source.tree.MethodTree method, JavaSourceType containingClass)
protected IParameterInfo[] getActualParameterInfos(IFeatureInfo container, TypeVarToTypeMap actualParamByVarName, boolean bKeepTypeVars)
public int compareTo(IJavaClassMethod o)
compareTo in interface Comparable<IJavaClassMethod>Copyright © 2017. All rights reserved.