Uses of Interface
net.sourceforge.pmd.lang.java.ast.ASTExpression
-
Packages that use ASTExpression Package Description net.sourceforge.pmd.lang.java.ast Contains the classes and interfaces modelling the Java AST.net.sourceforge.pmd.lang.java.rule.codestyle -
-
Uses of ASTExpression in net.sourceforge.pmd.lang.java.ast
Subinterfaces of ASTExpression in net.sourceforge.pmd.lang.java.ast Modifier and Type Interface Description interface
ASTAssignableExpr
An expression that may be assigned by an assignment expression, or incremented or decremented.static interface
ASTAssignableExpr.ASTNamedReferenceExpr
An assignable expression that has a name, and refers to a symbol.interface
ASTLiteral
A lexical literal.interface
ASTPrimaryExpression
Tags thoseexpressions
that are categorised as primary by the JLS.interface
FunctionalExpression
A method reference or lambda expression.interface
QualifiableExpression
Node that may be qualified by an expression, e.g.Classes in net.sourceforge.pmd.lang.java.ast that implement ASTExpression Modifier and Type Class Description class
ASTAmbiguousName
An ambiguous name occurring in any context.class
ASTArrayAccess
An array access expression.class
ASTArrayAllocation
An array creation expression.class
ASTArrayInitializer
An array initializer.class
ASTAssignmentExpression
Represents an assignment expression.class
ASTBooleanLiteral
The boolean literal, either "true" or "false".class
ASTCastExpression
Represents a type cast expression.class
ASTCharLiteral
Represents a character literal.class
ASTClassLiteral
A class literal.class
ASTConditionalExpression
Represents a conditional expression, aka ternary expression.class
ASTConstructorCall
A class instance creation expression.class
ASTFieldAccess
A field access expression.class
ASTInfixExpression
Represents a binary infix expression.class
ASTLambdaExpression
A lambda expression.class
ASTMethodCall
A method invocation expression.class
ASTMethodReference
Method or constructor reference expression.class
ASTNullLiteral
The null literal.class
ASTNumericLiteral
A numeric literal of any type (double, int, long, float, etc).class
ASTPatternExpression
Wraps aASTPattern
node but presents the interface ofASTExpression
.class
ASTStringLiteral
Represents a string literal.class
ASTSuperExpression
The "super" keyword.class
ASTSwitchExpression
A switch expression, as introduced in Java 12.class
ASTTemplateExpression
A string template expression.class
ASTThisExpression
The "this" expression.class
ASTTypeExpression
Wraps a type node but presents the interface ofASTExpression
.class
ASTUnaryExpression
Represents a unary operation on a value.class
ASTVariableAccess
An unqualified reference to a variable (either local, or a field that is in scope).Methods in net.sourceforge.pmd.lang.java.ast that return ASTExpression Modifier and Type Method Description ASTExpression
ASTAssertStatement. getCondition()
Returns the expression tested by this assert statement.ASTExpression
ASTConditionalExpression. getCondition()
Returns the node that represents the guard of this conditional.ASTExpression
ASTDoStatement. getCondition()
Returns the node that represents the guard of this loop.ASTExpression
ASTForStatement. getCondition()
ASTExpression
ASTIfStatement. getCondition()
Returns the node that represents the guard of this conditional.default @Nullable ASTExpression
ASTLoopStatement. getCondition()
Returns the node that represents the condition of this loop.ASTExpression
ASTWhileStatement. getCondition()
Returns the node that represents the guard of this loop.ASTExpression
ASTAssertStatement. getDetailMessageNode()
Returns the expression that corresponds to the detail message, i.e.ASTExpression
ASTConditionalExpression. getElseBranch()
Returns the node that represents the expression that will be evaluated if the guard evaluates to false.@NonNull ASTExpression
ASTExpressionStatement. getExpr()
Returns the contained expression.@Nullable ASTExpression
ASTReturnStatement. getExpr()
Returns the returned expression, or null if this is a simple return.ASTExpression
ASTThrowStatement. getExpr()
Returns the expression for the thrown exception.ASTExpression
ASTYieldStatement. getExpr()
Returns the yielded expression.@Nullable ASTExpression
ASTLambdaExpression. getExpression()
Deprecated.@Nullable ASTExpression
ASTLambdaExpression. getExpressionBody()
Returns the body of this lambda if it is an expression.ASTExpression
ASTGuard. getGuard()
ASTExpression
ASTArrayAccess. getIndexExpression()
Returns the expression within the brackets.ASTExpression
ASTResource. getInitializer()
Returns the initializer of the expression.@Nullable ASTExpression
ASTVariableDeclarator. getInitializer()
Returns the initializer, of the variable, or null if it doesn't exist.@Nullable ASTExpression
ASTVariableId. getInitializer()
Returns the initializer of the variable, or null if it doesn't exist.@NonNull ASTExpression
ASTForeachStatement. getIterableExpr()
Returns the expression that evaluates to theIterable
being looped upon.ASTExpression
ASTArrayDimExpr. getLengthExpression()
ASTExpression
ASTSynchronizedStatement. getLockExpression()
Returns the expression evaluating to the lock object.ASTExpression
ASTCastExpression. getOperand()
ASTExpression
ASTUnaryExpression. getOperand()
Returns the expression nested within this expression.@NonNull ASTExpression
ASTArrayAccess. getQualifier()
Returns the expression to the left of the "[".@Nullable ASTExpression
ASTConstructorCall. getQualifier()
Returns the outer instance expression, if this is a qualified constructor call.@Nullable ASTExpression
ASTExplicitConstructorInvocation. getQualifier()
Returns the qualifying expression if this is a qualified superclass constructor invocation.@NonNull ASTExpression
ASTFieldAccess. getQualifier()
@NonNull ASTExpression
ASTMethodReference. getQualifier()
Returns the node to the left of the "::".default @Nullable ASTExpression
QualifiableExpression. getQualifier()
Returns the expression to the left of the "." if it exists.ASTExpression
ASTInfixExpression. getRightOperand()
Returns the right-hand side operand.ASTExpression
ASTTemplateExpression. getTemplateProcessor()
default ASTExpression
ASTSwitchLike. getTestedExpression()
Gets the expression tested by this switch.ASTExpression
ASTConditionalExpression. getThenBranch()
Returns the node that represents the expression that will be evaluated if the guard evaluates to true.Methods in net.sourceforge.pmd.lang.java.ast that return types with arguments of type ASTExpression Modifier and Type Method Description NodeStream<ASTExpression>
ASTSwitchLabel. getExprList()
Returns the expressions of this label, or an empty list if this is the default label.NodeStream<ASTExpression>
ASTSwitchExpression. getYieldExpressions()
Returns a stream of all expressions which can be the value of this switch.Iterator<ASTExpression>
ASTArrayInitializer. iterator()
Iterator<ASTExpression>
ASTSwitchLabel. iterator()
Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTExpression Modifier and Type Method Description R
JavaVisitorBase. visitExpression(ASTExpression node, P data)
-
Uses of ASTExpression in net.sourceforge.pmd.lang.java.rule.codestyle
Methods in net.sourceforge.pmd.lang.java.rule.codestyle with parameters of type ASTExpression Modifier and Type Method Description static UselessParenthesesRule.Necessity
UselessParenthesesRule. needsParentheses(ASTExpression inner, JavaNode outer)
-