public String toString() { String rVal = "Add "; String varName = ""; String varType = ""; DeclareVariable var = getVariable(); if (var != null) { if (var.getName() != null) { varName = var.getName(); } if (var.getType() != null) { varType = var.getType().toString(); } } rVal = rVal + varType + " variable: " + varName; return (rVal); }
public VariableType getVariableType() { if (variable == null) { return (null); } else { return (variable.getType()); } }