Uses of Interface
net.sourceforge.pmd.lang.java.ast.ASTStatement
-
Packages that use ASTStatement Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST. -
-
Uses of ASTStatement in net.sourceforge.pmd.lang.java.ast
Subinterfaces of ASTStatement in net.sourceforge.pmd.lang.java.ast Modifier and Type Interface Description interface
ASTLoopStatement
A loop statement.Classes in net.sourceforge.pmd.lang.java.ast that implement ASTStatement Modifier and Type Class Description class
ASTAssertStatement
Represents anassert
statement.class
ASTBlock
A block of code.class
ASTBreakStatement
A break statement, that jumps to a named label (or exits the current loop).class
ASTContinueStatement
A continue statement, that jumps to the next iteration of an enclosing loop.class
ASTDoStatement
Represents ado ... while
statement.class
ASTEmptyStatement
An empty statement (useless).class
ASTExplicitConstructorInvocation
An explicit constructor invocation, occurring at the start of a constructor declaration.class
ASTExpressionStatement
A statement that contains an expression.class
ASTForeachStatement
Represents a "foreach"-loop on anIterable
.class
ASTForStatement
Represents afor
loop (distinct from foreach loops).class
ASTIfStatement
Represents anif
statement, possibly with anelse
statement.class
ASTLabeledStatement
A wrapper around a statement that assigns it a label.class
ASTLocalClassStatement
A statement that contains a local class declaration.class
ASTLocalVariableDeclaration
Represents a local variable declaration.class
ASTReturnStatement
A return statement in a method or constructor body.class
ASTStatementExpressionList
A list of statement expressions.class
ASTSwitchStatement
Represents aswitch
statement.class
ASTSynchronizedStatement
A synchronized statement.class
ASTThrowStatement
Athrow
statement.class
ASTTryStatement
Try statement node.class
ASTWhileStatement
Represents awhile
loop.class
ASTYieldStatement
Ayield
statement in a switch expression.Methods in net.sourceforge.pmd.lang.java.ast that return ASTStatement Modifier and Type Method Description ASTStatement
ASTDoStatement. getBody()
Returns the statement that will be run while the guard evaluates to true.default ASTStatement
ASTLoopStatement. getBody()
Returns the statement that represents the body of this loop.@Nullable ASTStatement
ASTIfStatement. getElseBranch()
Returns the statement of theelse
clause, if any.@Nullable ASTStatement
ASTForStatement. getInit()
Returns the statement nested within the init clause, if it exists.ASTStatement
ASTForInit. getStatement()
Returns the statement nested within this node.ASTStatement
ASTLabeledStatement. getStatement()
Returned the statement named by this label.ASTStatement
ASTBreakStatement. getTarget()
Returns the statement that is the target of this break.ASTStatement
ASTContinueStatement. getTarget()
Returns the statement that is the target of this break.ASTStatement
ASTIfStatement. getThenBranch()
Returns the statement that will be run if the guard evaluates to true.Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type ASTStatement Modifier and Type Method Description NodeStream<ASTStatement>
ASTSwitchFallthroughBranch. getStatements()
Returns the list of statements dominated by the labels.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTStatement Modifier and Type Method Description R
JavaVisitorBase. visitStatement(ASTStatement node, P data)
-