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 interfaceASTLoopStatementA loop statement.Classes in net.sourceforge.pmd.lang.java.ast that implement ASTStatement Modifier and Type Class Description classASTAssertStatementRepresents anassertstatement.classASTBlockA block of code.classASTBreakStatementA break statement, that jumps to a named label (or exits the current loop).classASTContinueStatementA continue statement, that jumps to the next iteration of an enclosing loop.classASTDoStatementRepresents ado ... whilestatement.classASTEmptyStatementAn empty statement (useless).classASTExplicitConstructorInvocationAn explicit constructor invocation, occurring at the start of a constructor declaration.classASTExpressionStatementA statement that contains an expression.classASTForeachStatementRepresents a "foreach"-loop on anIterable.classASTForStatementRepresents aforloop (distinct from foreach loops).classASTIfStatementRepresents anifstatement, possibly with anelsestatement.classASTLabeledStatementA wrapper around a statement that assigns it a label.classASTLocalClassStatementA statement that contains a local class declaration.classASTLocalVariableDeclarationRepresents a local variable declaration.classASTReturnStatementA return statement in a method or constructor body.classASTStatementExpressionListA list of statement expressions.classASTSwitchStatementRepresents aswitchstatement.classASTSynchronizedStatementA synchronized statement.classASTThrowStatementAthrowstatement.classASTTryStatementTry statement node.classASTWhileStatementRepresents awhileloop.classASTYieldStatementAyieldstatement in a switch expression.Methods in net.sourceforge.pmd.lang.java.ast that return ASTStatement Modifier and Type Method Description ASTStatementASTDoStatement. getBody()Returns the statement that will be run while the guard evaluates to true.default ASTStatementASTLoopStatement. getBody()Returns the statement that represents the body of this loop.@Nullable ASTStatementASTIfStatement. getElseBranch()Returns the statement of theelseclause, if any.@Nullable ASTStatementASTForStatement. getInit()Returns the statement nested within the init clause, if it exists.ASTStatementASTForInit. getStatement()Returns the statement nested within this node.ASTStatementASTLabeledStatement. getStatement()Returned the statement named by this label.ASTStatementASTBreakStatement. getTarget()Returns the statement that is the target of this break.ASTStatementASTContinueStatement. getTarget()Returns the statement that is the target of this break.ASTStatementASTIfStatement. 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 net.sourceforge.pmd.lang.ast.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 RJavaVisitorBase. visitStatement(ASTStatement node, P data)
-