public final class FunctionVariableExpression extends Object implements QueryExpression, Cloneable
Constructor and Description |
---|
FunctionVariableExpression(String text,
ExpressionReturnType returnType)
Creates a new function node expression.
|
Modifier and Type | Method and Description |
---|---|
Expression |
copy()
Creates a copy of the expression.
|
Variable |
getOwner()
Gets the current owner, if assigned to a variable.
|
ExpressionReturnType |
getReturnType()
Gets the return type of the expression.
|
String |
getText()
Gets the expression text.
|
void |
setReturnType(ExpressionReturnType value) |
void |
setText(String value)
Sets the expression text.
|
static void |
validateSyntax(String expr)
Validates the syntax of a function expression.
|
public FunctionVariableExpression(String text, ExpressionReturnType returnType)
text
- The expression text.returnType
- The return type of the expression.public Expression copy()
copy
in interface Expression
public static void validateSyntax(String expr)
expr
- The expression string to test.public String getText()
getText
in interface Expression
public void setText(String value)
setText
in interface Expression
public Variable getOwner()
getOwner
in interface QueryExpression
public ExpressionReturnType getReturnType()
getReturnType
in interface Expression
public void setReturnType(ExpressionReturnType value)
Copyright © 2021. All rights reserved.