public class ASTReturn extends ASTStatement
value
is not null
), the expression should be fully evaluated and the
result should be returned to the caller.ASTNode.DataType
Modifier and Type | Field and Description |
---|---|
ASTExpression |
value |
attributes
Constructor and Description |
---|
ASTReturn() |
ASTReturn(ASTExpression value) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasValue() |
void |
traverse(ASTVisitor visitor)
Generic traversal method for the visitor pattern.
|
getASTTypeStr, getDepth, getParent, getSourceInfo, getType, setDepth, setParent, setSourceInfo, setType, typeToString
public ASTExpression value
public ASTReturn()
public ASTReturn(ASTExpression value)
public boolean hasValue()
public void traverse(ASTVisitor visitor)
ASTNode
Copyright © 2019. All rights reserved.