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 String getName() { if (variable != null) return variable.getName(); else return "unknown_variable"; }