Class MethodDeclaration
- java.lang.Object
-
- org.jd.core.v1.model.javasyntax.declaration.MethodDeclaration
-
- All Implemented Interfaces:
java.lang.Iterable<MemberDeclaration>,BaseMemberDeclaration,Declaration,MemberDeclaration,Base<MemberDeclaration>
- Direct Known Subclasses:
ClassFileMethodDeclaration
public class MethodDeclaration extends java.lang.Object implements MemberDeclaration
-
-
Field Summary
Fields Modifier and Type Field Description protected BaseAnnotationReferenceannotationReferencesprotected ElementValuedefaultAnnotationValueprotected java.lang.Stringdescriptorprotected BaseTypeexceptionTypesprotected intflagsprotected BaseFormalParameterformalParametersprotected java.lang.Stringnameprotected TypereturnedTypeprotected BaseStatementstatementsprotected BaseTypeParametertypeParameters-
Fields inherited from interface org.jd.core.v1.model.javasyntax.declaration.Declaration
FLAG_ABSTRACT, FLAG_ANNOTATION, FLAG_BRIDGE, FLAG_DEFAULT, FLAG_ENUM, FLAG_FINAL, FLAG_INTERFACE, FLAG_MANDATED, FLAG_MODULE, FLAG_NATIVE, FLAG_OPEN, FLAG_PRIVATE, FLAG_PROTECTED, FLAG_PUBLIC, FLAG_STATIC, FLAG_STATIC_PHASE, FLAG_STRICT, FLAG_SUPER, FLAG_SYNCHRONIZED, FLAG_SYNTHETIC, FLAG_TRANSIENT, FLAG_TRANSITIVE, FLAG_VARARGS, FLAG_VOLATILE
-
-
Constructor Summary
Constructors Constructor Description MethodDeclaration(int flags, java.lang.String name, Type returnedType, java.lang.String descriptor)MethodDeclaration(int flags, java.lang.String name, Type returnedType, java.lang.String descriptor, ElementValue defaultAnnotationValue)MethodDeclaration(int flags, java.lang.String name, Type returnedType, java.lang.String descriptor, BaseStatement statements)MethodDeclaration(int flags, java.lang.String name, Type returnedType, BaseFormalParameter formalParameters, java.lang.String descriptor, ElementValue defaultAnnotationValue)MethodDeclaration(int flags, java.lang.String name, Type returnedType, BaseFormalParameter formalParameters, java.lang.String descriptor, BaseStatement statements)MethodDeclaration(BaseAnnotationReference annotationReferences, int flags, java.lang.String name, BaseTypeParameter typeParameters, Type returnedType, BaseFormalParameter formalParameters, BaseType exceptionTypes, java.lang.String descriptor, BaseStatement statements, ElementValue defaultAnnotationValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(DeclarationVisitor visitor)BaseAnnotationReferencegetAnnotationReferences()ElementValuegetDefaultAnnotationValue()java.lang.StringgetDescriptor()BaseTypegetExceptionTypes()intgetFlags()BaseFormalParametergetFormalParameters()java.lang.StringgetName()TypegetReturnedType()BaseStatementgetStatements()BaseTypeParametergetTypeParameters()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
annotationReferences
protected BaseAnnotationReference annotationReferences
-
flags
protected int flags
-
name
protected java.lang.String name
-
typeParameters
protected BaseTypeParameter typeParameters
-
returnedType
protected Type returnedType
-
formalParameters
protected BaseFormalParameter formalParameters
-
exceptionTypes
protected BaseType exceptionTypes
-
descriptor
protected java.lang.String descriptor
-
statements
protected BaseStatement statements
-
defaultAnnotationValue
protected ElementValue defaultAnnotationValue
-
-
Constructor Detail
-
MethodDeclaration
public MethodDeclaration(int flags, java.lang.String name, Type returnedType, java.lang.String descriptor)
-
MethodDeclaration
public MethodDeclaration(int flags, java.lang.String name, Type returnedType, java.lang.String descriptor, BaseStatement statements)
-
MethodDeclaration
public MethodDeclaration(int flags, java.lang.String name, Type returnedType, java.lang.String descriptor, ElementValue defaultAnnotationValue)
-
MethodDeclaration
public MethodDeclaration(int flags, java.lang.String name, Type returnedType, BaseFormalParameter formalParameters, java.lang.String descriptor, BaseStatement statements)
-
MethodDeclaration
public MethodDeclaration(int flags, java.lang.String name, Type returnedType, BaseFormalParameter formalParameters, java.lang.String descriptor, ElementValue defaultAnnotationValue)
-
MethodDeclaration
public MethodDeclaration(BaseAnnotationReference annotationReferences, int flags, java.lang.String name, BaseTypeParameter typeParameters, Type returnedType, BaseFormalParameter formalParameters, BaseType exceptionTypes, java.lang.String descriptor, BaseStatement statements, ElementValue defaultAnnotationValue)
-
-
Method Detail
-
getAnnotationReferences
public BaseAnnotationReference getAnnotationReferences()
-
getFlags
public int getFlags()
-
getName
public java.lang.String getName()
-
getTypeParameters
public BaseTypeParameter getTypeParameters()
-
getReturnedType
public Type getReturnedType()
-
getFormalParameters
public BaseFormalParameter getFormalParameters()
-
getExceptionTypes
public BaseType getExceptionTypes()
-
getDescriptor
public java.lang.String getDescriptor()
-
getStatements
public BaseStatement getStatements()
-
getDefaultAnnotationValue
public ElementValue getDefaultAnnotationValue()
-
accept
public void accept(DeclarationVisitor visitor)
- Specified by:
acceptin interfaceDeclaration
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-