/* (non-Javadoc) * @see org.sdxchange.dynamo.parser4.IXFrame#defineVar(java.lang.String, org.oasis.xmile.devkit.xframe.XSymbol) */ @Override public void defineVar(String varName, XSymbol sym) { System.out.println("Defining Aux " + sym.dump()); XSymbol existing = definedVars.put(varName, sym); if (existing != null) { System.err.println("Duplicate Symbol definition: " + existing + " :: " + sym); } }
/* (non-Javadoc) * @see org.sdxchange.dynamo.parser4.IXFrame#dumpSymbols() */ @Override public String dumpSymbols() { String rval = ""; for (XSymbol sym : definedVars.values()) { rval += (sym.dump() + "\n"); } return rval; }
/* (non-Javadoc) * @see org.sdxchange.dynamo.parser4.IXFrame#dump() */ @Override public void dump() { for (XSymbol sym : definedVars.values()) { System.out.println(sym.dump()); } }