/** * Gets an array of display names for tokens defined or imported by the * grammar. The array index is the token type, and the value is the result * of {@link #getTokenDisplayName} for the corresponding token type. * * @see #getTokenDisplayName * @return The display names of all tokens defined in the grammar. */ public String[] getTokenDisplayNames() { int numTokens = getMaxTokenType(); String[] tokenNames = new String[numTokens+1]; for (int i = 0; i < tokenNames.length; i++) { tokenNames[i] = getTokenDisplayName(i); } return tokenNames; }
/** * Gets an array of display names for tokens defined or imported by the * grammar. The array index is the token type, and the value is the result * of {@link #getTokenDisplayName} for the corresponding token type. * * @see #getTokenDisplayName * @return The display names of all tokens defined in the grammar. */ public String[] getTokenDisplayNames() { int numTokens = getMaxTokenType(); String[] tokenNames = new String[numTokens+1]; for (int i = 0; i < tokenNames.length; i++) { tokenNames[i] = getTokenDisplayName(i); } return tokenNames; }
/** * Gets an array of display names for tokens defined or imported by the * grammar. The array index is the token type, and the value is the result * of {@link #getTokenDisplayName} for the corresponding token type. * * @see #getTokenDisplayName * @return The display names of all tokens defined in the grammar. */ public String[] getTokenDisplayNames() { int numTokens = getMaxTokenType(); String[] tokenNames = new String[numTokens+1]; for (int i = 0; i < tokenNames.length; i++) { tokenNames[i] = getTokenDisplayName(i); } return tokenNames; }
/** * Gets an array of display names for tokens defined or imported by the * grammar. The array index is the token type, and the value is the result * of {@link #getTokenDisplayName} for the corresponding token type. * * @see #getTokenDisplayName * @return The display names of all tokens defined in the grammar. */ public String[] getTokenDisplayNames() { int numTokens = getMaxTokenType(); String[] tokenNames = new String[numTokens+1]; for (int i = 0; i < tokenNames.length; i++) { tokenNames[i] = getTokenDisplayName(i); } return tokenNames; }
/** * Gets an array of display names for tokens defined or imported by the * grammar. The array index is the token type, and the value is the result * of {@link #getTokenDisplayName} for the corresponding token type. * * @see #getTokenDisplayName * @return The display names of all tokens defined in the grammar. */ public String[] getTokenDisplayNames() { int numTokens = getMaxTokenType(); String[] tokenNames = new String[numTokens+1]; for (int i = 0; i < tokenNames.length; i++) { tokenNames[i] = getTokenDisplayName(i); } return tokenNames; }
String label = g.getTokenDisplayName(a.label); buf.append("-").append(label).append("->").append(getStateString(t.target)).append('\n');
String label = g.getTokenDisplayName(a.label); buf.append("-").append(label).append("->").append(getStateString(t.target)).append('\n');
String label = g.getTokenDisplayName(a.label); buf.append("-").append(label).append("->").append(getStateString(t.target)).append('\n');
String label = g.getTokenDisplayName(a.label); buf.append("-").append(label).append("->").append(getStateString(t.target)).append('\n');
String label = g.getTokenDisplayName(a.label); buf.append("-").append(label).append("->").append(getStateString(t.target)).append('\n');
String label = String.valueOf(ttype); if ( isLexer ) label = "'"+getEdgeLabel(new StringBuilder().appendCodePoint(entry.getKey()).toString())+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(ttype); ST st = stlib.getInstanceOf("edge"); st.add("label", label);
String label = String.valueOf(ttype); if ( isLexer ) label = "'"+getEdgeLabel(new StringBuilder().appendCodePoint(i).toString())+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(ttype); ST st = stlib.getInstanceOf("edge"); st.add("label", label);
String.format("#%d Type %s, Line %d:%d%s", tokenUnderCursor.getTokenIndex(), previewState.g.getTokenDisplayName(tokenUnderCursor.getType()), tokenUnderCursor.getLine(), tokenUnderCursor.getCharPositionInLine(),
String label = String.valueOf(ttype); if ( isLexer ) label = "'"+getEdgeLabel(new StringBuilder().appendCodePoint(i).toString())+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(ttype); ST st = stlib.getInstanceOf("edge"); st.add("label", label);
String label = String.valueOf(ttype); if ( isLexer ) label = "'"+getEdgeLabel(String.valueOf((char) i))+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(ttype); ST st = stlib.getInstanceOf("edge"); st.add("label", label);
String label = String.valueOf(ttype); if ( isLexer ) label = "'"+getEdgeLabel(String.valueOf((char) i))+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(ttype); ST st = stlib.getInstanceOf("edge"); st.add("label", label);
String label = String.valueOf(atom.label); if ( isLexer ) label = "'"+getEdgeLabel(new StringBuilder().appendCodePoint(atom.label).toString())+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(atom.label); edgeST.add("label", getEdgeLabel(label));
String label = String.valueOf(atom.label); if ( isLexer ) label = "'"+getEdgeLabel(new StringBuilder().appendCodePoint(atom.label).toString())+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(atom.label); edgeST.add("label", getEdgeLabel(label));
String label = String.valueOf(atom.label); if ( isLexer ) label = "'"+getEdgeLabel(String.valueOf((char)atom.label))+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(atom.label); edgeST.add("label", getEdgeLabel(label));
String label = String.valueOf(atom.label); if ( isLexer ) label = "'"+getEdgeLabel(String.valueOf((char)atom.label))+"'"; else if ( grammar!=null ) label = grammar.getTokenDisplayName(atom.label); edgeST.add("label", getEdgeLabel(label));