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 interfaceASTAssignableExprAn expression that may be assigned by an assignment expression, or incremented or decremented.static interfaceASTAssignableExpr.ASTNamedReferenceExprAn assignable expression that has a name, and refers to a symbol.interfaceASTLiteralA lexical literal.interfaceASTPrimaryExpressionTags thoseexpressionsthat are categorised as primary by the JLS.interfaceFunctionalExpressionA method reference or lambda expression.interfaceQualifiableExpressionNode 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 classASTAmbiguousNameAn ambiguous name occurring in any context.classASTArrayAccessAn array access expression.classASTArrayAllocationAn array creation expression.classASTArrayInitializerAn array initializer.classASTAssignmentExpressionRepresents an assignment expression.classASTBooleanLiteralThe boolean literal, either "true" or "false".classASTCastExpressionRepresents a type cast expression.classASTCharLiteralRepresents a character literal.classASTClassLiteralA class literal.classASTConditionalExpressionRepresents a conditional expression, aka ternary expression.classASTConstructorCallA class instance creation expression.classASTFieldAccessA field access expression.classASTInfixExpressionRepresents a binary infix expression.classASTLambdaExpressionA lambda expression.classASTMethodCallA method invocation expression.classASTMethodReferenceMethod or constructor reference expression.classASTNullLiteralThe null literal.classASTNumericLiteralA numeric literal of any type (double, int, long, float, etc).classASTPatternExpressionWraps aASTPatternnode but presents the interface ofASTExpression.classASTStringLiteralRepresents a string literal.classASTSuperExpressionThe "super" keyword.classASTSwitchExpressionA switch expression, as introduced in Java 12.classASTTemplateExpressionA string template expression.classASTThisExpressionThe "this" expression.classASTTypeExpressionWraps a type node but presents the interface ofASTExpression.classASTUnaryExpressionRepresents a unary operation on a value.classASTVariableAccessAn 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 ASTExpressionASTAssertStatement. getCondition()Returns the expression tested by this assert statement.ASTExpressionASTConditionalExpression. getCondition()Returns the node that represents the guard of this conditional.ASTExpressionASTDoStatement. getCondition()Returns the node that represents the guard of this loop.ASTExpressionASTForStatement. getCondition()ASTExpressionASTIfStatement. 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.ASTExpressionASTWhileStatement. getCondition()Returns the node that represents the guard of this loop.ASTExpressionASTAssertStatement. getDetailMessageNode()Returns the expression that corresponds to the detail message, i.e.ASTExpressionASTConditionalExpression. 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.ASTExpressionASTThrowStatement. getExpr()Returns the expression for the thrown exception.ASTExpressionASTYieldStatement. getExpr()Returns the yielded expression.@Nullable ASTExpressionASTLambdaExpression. getExpression()Deprecated.@Nullable ASTExpressionASTLambdaExpression. getExpressionBody()Returns the body of this lambda if it is an expression.ASTExpressionASTGuard. getGuard()ASTExpressionASTArrayAccess. getIndexExpression()Returns the expression within the brackets.ASTExpressionASTResource. 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.ASTExpressionASTArrayDimExpr. getLengthExpression()ASTExpressionASTSynchronizedStatement. getLockExpression()Returns the expression evaluating to the lock object.ASTExpressionASTCastExpression. getOperand()ASTExpressionASTUnaryExpression. 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.ASTExpressionASTInfixExpression. getRightOperand()Returns the right-hand side operand.ASTExpressionASTTemplateExpression. getTemplateProcessor()default ASTExpressionASTSwitchLike. getTestedExpression()Gets the expression tested by this switch.ASTExpressionASTConditionalExpression. 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 RJavaVisitorBase. 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.NecessityUselessParenthesesRule. needsParentheses(ASTExpression inner, JavaNode outer)
-