org.sonar.plugins.java.api.tree
Interface MethodTree
- All Superinterfaces:
- Tree
@Beta
public interface MethodTree
- extends Tree
Method or annotation type element declaration.
JLS 8.8. Constructor (Tree.Kind.CONSTRUCTOR):
modifiers() typeParameters() simpleName() ()} ( parameters() ) throws throwsClauses() block()
JLS 8.4, 9.4. Method (Tree.Kind.METHOD):
modifiers() typeParameters() returnType() simpleName() ()} ( parameters() ) throws throwsClauses() block()
JLS 9.6.1, 9.6.2. Annotation type element (Tree.Kind.METHOD):
modifiers() returnType() simpleName() ()} default defaultValue() ;
- Since:
- Java 1.3
| Nested classes/interfaces inherited from interface org.sonar.plugins.java.api.tree.Tree |
Tree.Kind |
| Methods inherited from interface org.sonar.plugins.java.api.tree.Tree |
accept, is |
modifiers
ModifiersTree modifiers()
typeParameters
List<Tree> typeParameters()
returnType
@Nullable
Tree returnType()
- Returns:
- null in case of constructor
simpleName
IdentifierTree simpleName()
parameters
List<VariableTree> parameters()
throwsClauses
List<ExpressionTree> throwsClauses()
block
@Nullable
BlockTree block()
defaultValue
@Nullable
ExpressionTree defaultValue()
- Since:
- Java 1.5
Copyright © 2012-2014 SonarSource. All Rights Reserved.