public class UnaryPlusExpression
extends Expression
A unary plus expression, rendered as +(operand). The type of
this node is the type of the operand.
| Fields inherited from class | Fields |
|---|---|
class Expression |
EMPTY_ARRAY |
| Constructor and description |
|---|
UnaryPlusExpression(Expression expression)Creates a unary plus over expression. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public Expression |
getExpression()Returns the operand of this plus. |
|
public String |
getText() |
|
public ClassNode |
getType() |
|
public boolean |
isDynamic()Reports that the operand is not a dynamic expression. |
|
public Expression |
transformExpression(ExpressionTransformer transformer) |
|
public void |
visit(GroovyCodeVisitor visitor) |
| Methods inherited from class | Name |
|---|---|
class Expression |
getType, setType, transformExpression, transformExpressions, transformExpressions |
class AnnotatedNode |
addAnnotation, addAnnotation, addAnnotations, getAnnotations, getAnnotations, getDeclaringClass, getGroovydoc, getInstance, hasNoRealSourcePosition, isSynthetic, setDeclaringClass, setHasNoRealSourcePosition, setSynthetic |
class ASTNode |
copyNodeMetaData, getColumnNumber, getLastColumnNumber, getLastLineNumber, getLineNumber, getMetaDataMap, getText, setColumnNumber, setLastColumnNumber, setLastLineNumber, setLineNumber, setMetaDataMap, setSourcePosition, visit |
Creates a unary plus over expression.
expression - operand of the plusReturns the operand of this plus.
Reports that the operand is not a dynamic expression. This implementation always returns false.
falseCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.