Examples of jjtGetFirstToken()


Examples of fr.insalyon.citi.golo.compiler.parser.GoloASTNode.jjtGetFirstToken()

  public PositionInSourceCode getPositionInSourceCode() {
    GoloASTNode node = getASTNode();
    if (node == null) {
      return new PositionInSourceCode(0, 0);
    }
    return new PositionInSourceCode(node.jjtGetFirstToken().beginLine, node.jjtGetFirstToken().beginColumn);
  }
}
View Full Code Here

Examples of fr.insalyon.citi.golo.compiler.parser.GoloASTNode.jjtGetFirstToken()

  public PositionInSourceCode getPositionInSourceCode() {
    GoloASTNode node = getASTNode();
    if (node == null) {
      return new PositionInSourceCode(0, 0);
    }
    return new PositionInSourceCode(node.jjtGetFirstToken().beginLine, node.jjtGetFirstToken().beginColumn);
  }
}
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTBlock.jjtGetFirstToken()

        } else {
            toSearch = UpdateNodeTask.getInstance().getLastScore();
        }
        ASTBlock best = ASTBlock.findPitchBlock(toSearch, 0, 0);
        if (best != null) {
            ASTTempNode nd = ASTTempNode.create("", best.jjtGetFirstToken().beginLine, best.jjtGetFirstToken().beginColumn, best);
            NetbeansTextEditor.getInstance().selectPosition(nd);
        }
    }

    public void insertNewLine(boolean withBreak) {
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTBlock.jjtGetFirstToken()

        } else {
            toSearch = UpdateNodeTask.getInstance().getLastScore();
        }
        ASTBlock best = ASTBlock.findPitchBlock(toSearch, 0, 0);
        if (best != null) {
            ASTTempNode nd = ASTTempNode.create("", best.jjtGetFirstToken().beginLine, best.jjtGetFirstToken().beginColumn, best);
            NetbeansTextEditor.getInstance().selectPosition(nd);
        }
    }

    public void insertNewLine(boolean withBreak) {
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTDeclaration.jjtGetFirstToken()

            }
        } else {
            String k = dec.toString();

            Object l = dec.jjtGetValue();
            Token tok = dec.jjtGetFirstToken().next.next.next.next.next.next.next.next;
            String z1 = tok.image.trim();
            String z2 = tok.next.image.trim();
            tempo = ((double) Integer.parseInt(z1) / (double) Integer.parseInt(z2));
        }
        midiTime=tempo;
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTFunction.jjtGetFirstToken()

            if (tkind == ParserConstants.crescendo) {
                layout.text = "<";
            } else if (tkind == ParserConstants.decrescendo) {
                layout.text = ">";
            } else { //\p \f etc
                String image = func.jjtGetFirstToken().image;
                try {

                    if (image.startsWith("\\")) {
                        layout.text = func.jjtGetFirstToken().image.substring(1);
                    }
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTFunction.jjtGetFirstToken()

            } else { //\p \f etc
                String image = func.jjtGetFirstToken().image;
                try {

                    if (image.startsWith("\\")) {
                        layout.text = func.jjtGetFirstToken().image.substring(1);
                    }
                } catch (Exception ex) {
                    ex.printStackTrace();
                }
            }
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTPitch.jjtGetFirstToken()

            int pos = NetbeansTextEditor.getInstance().getPositionEnd(el.jjtGetLastToken());
            UpdateNodeTask.getInstance().lastCurrent = null;
            ASTPitch out = new ASTPitch(ParserTreeConstants.JJTPITCH);

            NetbeansTextEditor.getInstance().insertAfterASTItem(el, s, out);
            NetbeansTextEditor.getInstance().selectPosition(ne.getPositionBegin(out.jjtGetFirstToken()) - 1, 0);

        }

//        NoteEditor.create((Note) getMarkierung()).noteEinfuegen(name, true, akkord);
    }
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTSymbols.jjtGetFirstToken()

                || node.jjtGetFirstToken().kind == ParserConstants.stringnumber) {
            ASTSymbols symbol = (ASTSymbols) node;
            if(symbol.pitch==null)//eg \afterGrace would be ignored until noww
                return true;
            FingeringLayout layout = new FingeringLayout();
            String image = symbol.jjtGetFirstToken().image;
            try {
                if (image.substring(1).startsWith("\\rightHandFinger")) {
                    int t = image.charAt(image.length() - 1) - 48;//49=1
                    layout.toDraw = leftHandChars[t - 1];
                } else {
View Full Code Here

Examples of org.lilypondbeans.jccparser.ASTSymbols.jjtGetFirstToken()

                    layout.toDraw = leftHandChars[t - 1];
                } else {
                    if (image.startsWith("\\")) {
                        layout.stringNumber = true;
                    }
                    layout.toDraw = symbol.jjtGetFirstToken().image.substring(1, 2);
                }
            } catch (Exception ex) {
                ex.printStackTrace();
            }
            symbol.setLayoutObject(layout);
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.