Examples of CallStackFrame


Examples of net.sf.jmatchparser.template.engine.CallStackFrame

    this.returnLabel = returnLabel;
  }

  @Override
  public OperationResult execute(ParserState state) {
    state.setCallStack(new CallStackFrame(state.getCallStack(), returnLabel.getDestination()));
    state.setNextInstruction(templateLabel.getDestination());
    return OperationResult.CONTINUE;
  }
View Full Code Here

Examples of net.sf.jmatchparser.template.engine.CallStackFrame

    super(templatePosition);
  }

  @Override
  public OperationResult execute(ParserState state) {
    CallStackFrame frame = state.getCallStack();
    if (frame == null)
      throw new RuntimeException("Return without call");
    frame = frame.restoreVariables(state);
    state.setCallStack(frame.getNextFrame());
    state.setNextInstruction(frame.getReturnAddress());
    return OperationResult.CONTINUE;
  }
View Full Code Here

Examples of net.sf.jmatchparser.template.engine.CallStackFrame

  @Override
  public OperationResult execute(ParserState state) {
    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);
    return OperationResult.CONTINUE;
  }
View Full Code Here

Examples of org.netbeans.api.debugger.jpda.CallStackFrame

    public static void setupContext(JEditorPane editorPane) {
        EditorKit kit = CloneableEditorSupport.getEditorKit("text/x-scala");
        editorPane.setEditorKit(kit);
        DebuggerEngine en = DebuggerManager.getDebuggerManager ().getCurrentEngine();
        JPDADebugger d = en.lookupFirst(null, JPDADebugger.class);
        CallStackFrame csf = d.getCurrentCallStackFrame();
        if (csf != null) {
            String language = DebuggerManager.getDebuggerManager ().getCurrentSession().getCurrentLanguage();
            SourcePath sp = en.lookupFirst(null, SourcePath.class);
            String url = sp.getURL(csf, language);
            int line = csf.getLineNumber(language);
            setupContext(editorPane, url, line);
        }
    }
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.