Class MethodDeclaration
java.lang.Object
org.jd.core.v1.model.javasyntax.declaration.MethodDeclaration
- All Implemented Interfaces:
Iterable<MemberDeclaration>, BaseMemberDeclaration, Declaration, MemberDeclaration, Base<MemberDeclaration>
- Direct Known Subclasses:
ClassFileMethodDeclaration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BaseAnnotationReferenceprotected ElementValueprotected Stringprotected BaseTypeprotected intprotected BaseFormalParameterprotected Stringprotected Typeprotected BaseStatementprotected BaseTypeParameterFields inherited from interface 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
ConstructorsConstructorDescriptionMethodDeclaration(int flags, String name, Type returnedType, String descriptor) MethodDeclaration(int flags, String name, Type returnedType, String descriptor, ElementValue defaultAnnotationValue) MethodDeclaration(int flags, String name, Type returnedType, String descriptor, BaseStatement statements) MethodDeclaration(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, ElementValue defaultAnnotationValue) MethodDeclaration(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, BaseStatement statements) MethodDeclaration(BaseAnnotationReference annotationReferences, int flags, String name, BaseTypeParameter typeParameters, Type returnedType, BaseFormalParameter formalParameters, BaseType exceptionTypes, String descriptor, BaseStatement statements, ElementValue defaultAnnotationValue) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(DeclarationVisitor visitor) intgetFlags()getName()toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
annotationReferences
-
flags
protected int flags -
name
-
typeParameters
-
returnedType
-
formalParameters
-
exceptionTypes
-
descriptor
-
statements
-
defaultAnnotationValue
-
-
Constructor Details
-
MethodDeclaration
-
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, String descriptor, BaseStatement statements) -
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, String descriptor, ElementValue defaultAnnotationValue) -
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, BaseStatement statements) -
MethodDeclaration
public MethodDeclaration(int flags, String name, Type returnedType, BaseFormalParameter formalParameters, String descriptor, ElementValue defaultAnnotationValue) -
MethodDeclaration
public MethodDeclaration(BaseAnnotationReference annotationReferences, int flags, String name, BaseTypeParameter typeParameters, Type returnedType, BaseFormalParameter formalParameters, BaseType exceptionTypes, String descriptor, BaseStatement statements, ElementValue defaultAnnotationValue)
-
-
Method Details
-
getAnnotationReferences
-
getFlags
public int getFlags() -
getName
-
getTypeParameters
-
getReturnedType
-
getFormalParameters
-
getExceptionTypes
-
getDescriptor
-
getStatements
-
getDefaultAnnotationValue
-
accept
- Specified by:
acceptin interfaceDeclaration
-
toString
-