public class CreateVariableDesc extends Object
Constructor and Description |
---|
CreateVariableDesc(ClassDescriptor variableType,
String variableName,
ExprNode assignment,
boolean constant)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
ExprNode |
getAssignment()
Returns the assignment expression, or null if none
|
String |
getVariableName()
Returns the variable name
|
ClassDescriptor |
getVariableType()
Returns the variable type.
|
boolean |
isConstant() |
void |
setAssignment(ExprNode assignment) |
public CreateVariableDesc(ClassDescriptor variableType, String variableName, ExprNode assignment, boolean constant)
variableType
- type of the variablevariableName
- name of the variableassignment
- expression assigning the initial value, or null if noneconstant
- indicator for constantpublic ClassDescriptor getVariableType()
public String getVariableName()
public ExprNode getAssignment()
public boolean isConstant()
public void setAssignment(ExprNode assignment)
Copyright © 2005–2020. All rights reserved.