Class MethodDeclaration

All Implemented Interfaces:
NodeWithAbstractModifier<MethodDeclaration>, NodeWithAccessModifiers<MethodDeclaration>, NodeWithFinalModifier<MethodDeclaration>, NodeWithPrivateModifier<MethodDeclaration>, NodeWithProtectedModifier<MethodDeclaration>, NodeWithPublicModifier<MethodDeclaration>, NodeWithStaticModifier<MethodDeclaration>, NodeWithStrictfpModifier<MethodDeclaration>, NodeWithAnnotations<MethodDeclaration>, NodeWithDeclaration, NodeWithJavadoc<MethodDeclaration>, NodeWithModifiers<MethodDeclaration>, NodeWithOptionalBlockStmt<MethodDeclaration>, NodeWithParameters<MethodDeclaration>, NodeWithRange<Node>, NodeWithSimpleName<MethodDeclaration>, NodeWithThrownExceptions<MethodDeclaration>, NodeWithTokenRange<Node>, NodeWithType<MethodDeclaration,​Type>, NodeWithTypeParameters<MethodDeclaration>, Observable, Visitable, HasParentNode<Node>, Resolvable<ResolvedMethodDeclaration>, Cloneable

A method declaration. "public int abc() {return 1;}" in this example: class X { public int abc() {return 1;} }


All annotations preceding the return type will be set on this object, not on the return type. JavaParser doesn't know if it they are applicable to the method or the type.

Author:
Julio Vilmar Gesser