public class MethodTreeImpl extends JavaTree implements MethodTree
JavaTree.ArrayTypeTreeImpl, JavaTree.CompilationUnitTreeImpl, JavaTree.ImportTreeImpl, JavaTree.NotImplementedTreeImpl, JavaTree.ParameterizedTypeTreeImpl, JavaTree.PrimitiveTypeTreeImpl, JavaTree.UnionTypeTreeImpl, JavaTree.WildcardTreeImpl| Constructor and Description |
|---|
MethodTreeImpl(FormalParametersListTreeImpl parameters,
SyntaxToken defaultToken,
ExpressionTree defaultValue) |
MethodTreeImpl(Tree returnType,
IdentifierTree simpleName,
FormalParametersListTreeImpl parameters,
List<ExpressionTree> throwsClauses,
BlockTree block) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(TreeVisitor visitor) |
BlockTree |
block() |
Iterator<Tree> |
childrenIterator()
Creates iterator for children of this node.
|
MethodTreeImpl |
complete(Tree returnType,
IdentifierTree simpleName) |
MethodTreeImpl |
completeWithModifiers(ModifiersTreeImpl modifiers) |
MethodTreeImpl |
completeWithTypeParameters(TypeParameterListTreeImpl typeParameters) |
SyntaxToken |
defaultToken() |
ExpressionTree |
defaultValue() |
Tree.Kind |
getKind() |
int |
getLine() |
Symbol.MethodSymbol |
getSymbol() |
boolean |
isAnnotatedOverride() |
boolean |
isMainMethod() |
Boolean |
isOverriding()
Check if a methodTree is overriden.
|
ModifiersTree |
modifiers() |
List<VariableTree> |
parameters() |
Tree |
returnType() |
void |
setSymbol(Symbol.MethodSymbol symbol) |
IdentifierTree |
simpleName() |
List<ExpressionTree> |
throwsClauses() |
TypeParameters |
typeParameters() |
addChild, getAstNode, is, isLeaf, isLegacy, prependChildren, prependChildrenfindChildren, findDirectChildren, findFirstChild, findFirstDirectChild, findFirstParent, getChild, getChildren, getChildren, getDescendants, getFirstAncestor, getFirstAncestor, getFirstChild, getFirstChild, getFirstDescendant, getFromIndex, getLastChild, getLastChild, getLastToken, getName, getNextAstNode, getNextSibling, getNumberOfChildren, getParent, getPreviousAstNode, getPreviousSibling, getToIndex, getToken, getTokenLine, getTokenOriginalValue, getTokens, getTokenValue, getType, hasAncestor, hasAncestor, hasChildren, hasChildren, hasDescendant, hasDirectChildren, hasParent, hasParents, hasToBeSkippedFromAst, hasToken, is, isCopyBookOrGeneratedNode, isNot, nextAstNode, nextSibling, previousAstNode, previousSibling, select, setFromIndex, setToIndex, toStringpublic MethodTreeImpl(FormalParametersListTreeImpl parameters, @Nullable SyntaxToken defaultToken, @Nullable ExpressionTree defaultValue)
public MethodTreeImpl(@Nullable Tree returnType, IdentifierTree simpleName, FormalParametersListTreeImpl parameters, List<ExpressionTree> throwsClauses, @Nullable BlockTree block)
public MethodTreeImpl complete(Tree returnType, IdentifierTree simpleName)
public MethodTreeImpl completeWithTypeParameters(TypeParameterListTreeImpl typeParameters)
public MethodTreeImpl completeWithModifiers(ModifiersTreeImpl modifiers)
public ModifiersTree modifiers()
modifiers in interface MethodTreepublic TypeParameters typeParameters()
typeParameters in interface MethodTree@Nullable public Tree returnType()
returnType in interface MethodTreepublic IdentifierTree simpleName()
simpleName in interface MethodTreepublic List<VariableTree> parameters()
parameters in interface MethodTreepublic List<ExpressionTree> throwsClauses()
throwsClauses in interface MethodTree@Nullable public BlockTree block()
block in interface MethodTree@Nullable public SyntaxToken defaultToken()
defaultToken in interface MethodTree@Nullable public ExpressionTree defaultValue()
defaultValue in interface MethodTreepublic void accept(TreeVisitor visitor)
public Symbol.MethodSymbol getSymbol()
public void setSymbol(Symbol.MethodSymbol symbol)
public Iterator<Tree> childrenIterator()
JavaTreenull elements.childrenIterator in class JavaTreepublic Boolean isOverriding()
public boolean isAnnotatedOverride()
public boolean isMainMethod()
Copyright © 2012–2015 SonarSource. All rights reserved.