public class ASTVariable extends ASTNode
ASTNode.DataType
Modifier and Type | Field and Description |
---|---|
int |
arrayLength |
boolean |
isArray |
String |
name |
ASTNode.DataType |
type |
attributes
Constructor and Description |
---|
ASTVariable(String name,
ASTNode.DataType type) |
ASTVariable(String name,
ASTNode.DataType type,
int arrayLength) |
Modifier and Type | Method and Description |
---|---|
void |
traverse(ASTVisitor visitor)
Generic traversal method for the visitor pattern.
|
getASTTypeStr, getDepth, getParent, getSourceInfo, getType, setDepth, setParent, setSourceInfo, setType, typeToString
public String name
public ASTNode.DataType type
public boolean isArray
public int arrayLength
public ASTVariable(String name, ASTNode.DataType type)
public ASTVariable(String name, ASTNode.DataType type, int arrayLength)
public void traverse(ASTVisitor visitor)
ASTNode
Copyright © 2019. All rights reserved.