Package net.sf.jmatchparser.template.engine

Examples of net.sf.jmatchparser.template.engine.CallStackFrame.containsName()


    String name = varname.getString(state);
    String v = value == null ? null : value.getString(state);
    CallStackFrame frame = state.getCallStack();
    if (frame == null)
      throw new RuntimeException("SETLOCAL command cannot be used outside DEFTEMPLATE");
    if (!frame.containsName(name)) {
      String oldvalue = state.getLocal(name);
      state.setCallStack(new CallStackFrame(frame, name, oldvalue));
    }
    if (v != null)
      state.setLocal(name, v);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.