Uses of Interface
net.sourceforge.pmd.lang.java.ast.ASTExpression
Packages that use ASTExpression
Package
Description
Contains the classes and interfaces modelling the Java AST.
-
Uses of ASTExpression in net.sourceforge.pmd.lang.java.ast
Subinterfaces of ASTExpression in net.sourceforge.pmd.lang.java.astModifier and TypeInterfaceDescriptioninterfaceAn expression that may be assigned by an assignment expression, or incremented or decremented.static interfaceAn assignable expression that has a name, and refers to a symbol.interfaceA lexical literal.interfaceTags thoseexpressionsthat are categorised as primary by the JLS.interfaceA method reference or lambda expression.interfaceNode that may be qualified by an expression, e.g. an instance method call or inner class constructor invocation.Classes in net.sourceforge.pmd.lang.java.ast that implement ASTExpressionModifier and TypeClassDescriptionfinal classAn ambiguous name occurring in any context.final classAn array access expression.final classAn array creation expression.final classAn array initializer.final classRepresents an assignment expression.final classThe boolean literal, either "true" or "false".final classRepresents a type cast expression.final classRepresents a character literal.final classA class literal.final classRepresents a conditional expression, aka ternary expression.final classA class instance creation expression.final classA field access expression.final classRepresents a binary infix expression.final classA lambda expression.final classA method invocation expression.final classMethod or constructor reference expression.final classThe null literal.final classA numeric literal of any type (double, int, long, float, etc).final classWraps aASTPatternnode but presents the interface ofASTExpression.final classRepresents a string literal.final classThe "super" keyword.final classA switch expression, as introduced in Java 12.final classThe "this" expression.final classWraps a type node but presents the interface ofASTExpression.final classRepresents a unary operation on a value.final classAn unqualified reference to a variable (either local, or a field that is in scope).Methods in net.sourceforge.pmd.lang.java.ast that return ASTExpressionModifier and TypeMethodDescriptionASTAssertStatement.getCondition()Returns the expression tested by this assert statement.ASTConditionalExpression.getCondition()Returns the node that represents the guard of this conditional.ASTDoStatement.getCondition()Returns the node that represents the guard of this loop.ASTForStatement.getCondition()ASTIfStatement.getCondition()Returns the node that represents the guard of this conditional.default @Nullable ASTExpressionASTLoopStatement.getCondition()Returns the node that represents the condition of this loop.ASTWhileStatement.getCondition()Returns the node that represents the guard of this loop.ASTAssertStatement.getDetailMessageNode()Returns the expression that corresponds to the detail message, i.e. the expression after the colon, if it's present.ASTConditionalExpression.getElseBranch()Returns the node that represents the expression that will be evaluated if the guard evaluates to false.@NonNull ASTExpressionASTExpressionStatement.getExpr()Returns the contained expression.@Nullable ASTExpressionASTReturnStatement.getExpr()Returns the returned expression, or null if this is a simple return.ASTThrowStatement.getExpr()Returns the expression for the thrown exception.ASTYieldStatement.getExpr()Returns the yielded expression.@Nullable ASTExpressionASTLambdaExpression.getExpression()Deprecated.@Nullable ASTExpressionASTLambdaExpression.getExpressionBody()Returns the body of this lambda if it is an expression.ASTGuard.getGuard()ASTArrayAccess.getIndexExpression()Returns the expression within the brackets.ASTResource.getInitializer()Returns the initializer of the expression.@Nullable ASTExpressionASTVariableDeclarator.getInitializer()Returns the initializer, of the variable, or null if it doesn't exist.@Nullable ASTExpressionASTVariableId.getInitializer()Returns the initializer of the variable, or null if it doesn't exist.@NonNull ASTExpressionASTForeachStatement.getIterableExpr()Returns the expression that evaluates to theIterablebeing looped upon.ASTArrayDimExpr.getLengthExpression()ASTSynchronizedStatement.getLockExpression()Returns the expression evaluating to the lock object.ASTCastExpression.getOperand()ASTUnaryExpression.getOperand()Returns the expression nested within this expression.@NonNull ASTExpressionASTArrayAccess.getQualifier()Returns the expression to the left of the "[".@Nullable ASTExpressionASTConstructorCall.getQualifier()Returns the outer instance expression, if this is a qualified constructor call.@Nullable ASTExpressionASTExplicitConstructorInvocation.getQualifier()Returns the qualifying expression if this is a qualified superclass constructor invocation.@NonNull ASTExpressionASTFieldAccess.getQualifier()@NonNull ASTExpressionASTMethodReference.getQualifier()Returns the node to the left of the "::".default @Nullable ASTExpressionQualifiableExpression.getQualifier()Returns the expression to the left of the "." if it exists.ASTInfixExpression.getRightOperand()Returns the right-hand side operand.default ASTExpressionASTSwitchLike.getTestedExpression()Gets the expression tested by this switch.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 ASTExpressionModifier and TypeMethodDescriptionASTSwitchLabel.getExprList()Returns the expressions of this label, or an empty list if this is the default label.ASTSwitchExpression.getYieldExpressions()Returns a stream of all expressions which can be the value of this switch.ASTArrayInitializer.iterator()ASTSwitchLabel.iterator()Methods in net.sourceforge.pmd.lang.java.ast with parameters of type ASTExpression -
Uses of ASTExpression in net.sourceforge.pmd.lang.java.rule.codestyle
Methods in net.sourceforge.pmd.lang.java.rule.codestyle with parameters of type ASTExpressionModifier and TypeMethodDescriptionUselessParenthesesRule.needsParentheses(ASTExpression inner, JavaNode outer)
ASTLambdaExpression.getExpressionBody()