Uses of Interface
net.sourceforge.pmd.lang.java.ast.ASTStatement
Packages that use ASTStatement
Package
Description
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.astClasses in net.sourceforge.pmd.lang.java.ast that implement ASTStatementModifier and TypeClassDescriptionfinal classRepresents anassertstatement.final classA block of code.final classA break statement, that jumps to a named label (or exits the current loop).final classA continue statement, that jumps to the next iteration of an enclosing loop.final classRepresents ado ... whilestatement.final classAn empty statement (useless).final classAn explicit constructor invocation, occurring at the start of a constructor declaration.final classA statement that contains an expression.final classRepresents a "foreach"-loop on anIterable.final classRepresents aforloop (distinct from foreach loops).final classRepresents anifstatement, possibly with anelsestatement.final classA wrapper around a statement that assigns it a label.final classA statement that contains a local class declaration.final classRepresents a local variable declaration.final classA return statement in a method or constructor body.final classA list of statement expressions.final classRepresents aswitchstatement.final classA synchronized statement.final classAthrowstatement.final classTry statement node.final classRepresents awhileloop.classAyieldstatement in a switch expression.Methods in net.sourceforge.pmd.lang.java.ast that return ASTStatementModifier and TypeMethodDescriptionASTDoStatement.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.ASTForInit.getStatement()Returns the statement nested within this node.ASTLabeledStatement.getStatement()Returned the statement named by this label.ASTBreakStatement.getTarget()Returns the statement that is the target of this break.ASTContinueStatement.getTarget()Returns the statement that is the target of this break.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 ASTStatementModifier and TypeMethodDescriptionASTSwitchFallthroughBranch.getStatements()Returns the list of statements dominated by the labels.Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTStatement