public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } StringTemplate st = getMessageTemplate(); String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; st.setAttribute("ruleName", ruleName); List sortedAlts = new ArrayList(); sortedAlts.addAll(altsWithRecursion); Collections.sort(sortedAlts); // make sure it's 1, 2, ... st.setAttribute("alts", sortedAlts); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } ST st = getMessageTemplate(); String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; st.add("ruleName", ruleName); List<Integer> sortedAlts = new ArrayList<Integer>(); sortedAlts.addAll(altsWithRecursion); Collections.sort(sortedAlts); // make sure it's 1, 2, ... st.add("alts", sortedAlts); return super.toString(st); }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } StringTemplate st = getMessageTemplate(); String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; st.setAttribute("ruleName", ruleName); List sortedAlts = new ArrayList(); sortedAlts.addAll(altsWithRecursion); Collections.sort(sortedAlts); // make sure it's 1, 2, ... st.setAttribute("alts", sortedAlts); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } ST st = getMessageTemplate(); String ruleName = probe.dfa.getNFADecisionStartState().enclosingRule.name; st.add("ruleName", ruleName); List<Integer> sortedAlts = new ArrayList<Integer>(); sortedAlts.addAll(altsWithRecursion); Collections.sort(sortedAlts); // make sure it's 1, 2, ... st.add("alts", sortedAlts); return super.toString(st); }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } List labels = probe.getSampleNonDeterministicInputSequence(problemState); String input = probe.getInputSequenceDisplay(labels); StringTemplate st = getMessageTemplate(); List alts = new ArrayList(); alts.addAll(problemState.getAltSet()); Collections.sort(alts); st.setAttribute("danglingAlts", alts); st.setAttribute("input", input); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } List<Label> labels = probe.getSampleNonDeterministicInputSequence(problemState); String input = probe.getInputSequenceDisplay(labels); ST st = getMessageTemplate(); List<Integer> alts = new ArrayList<Integer>(); alts.addAll(problemState.getAltSet()); Collections.sort(alts); st.add("danglingAlts", alts); st.add("input", input); return super.toString(st); }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } List labels = probe.getSampleNonDeterministicInputSequence(problemState); String input = probe.getInputSequenceDisplay(labels); StringTemplate st = getMessageTemplate(); List alts = new ArrayList(); alts.addAll(problemState.getAltSet()); Collections.sort(alts); st.setAttribute("danglingAlts", alts); st.setAttribute("input", input); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } List<Label> labels = probe.getSampleNonDeterministicInputSequence(problemState); String input = probe.getInputSequenceDisplay(labels); ST st = getMessageTemplate(); List<Integer> alts = new ArrayList<Integer>(); alts.addAll(problemState.getAltSet()); Collections.sort(alts); st.add("danglingAlts", alts); st.add("input", input); return super.toString(st); }
@Override public String toString() { line = 0; column = 0; if ( offendingToken!=null ) { line = offendingToken.getLine(); column = offendingToken.getCharPositionInLine(); } // TODO: actually set the right Grammar instance to get the filename // TODO: have to update all v2 grammar files for this. or use errormanager and tool to get the current grammar if (g != null) { file = g.getFileName(); } ST st = getMessageTemplate(); if ( arg!=null ) { st.add("arg", arg); } return super.toString(st); } }
@Override public String toString() { line = 0; column = 0; if ( offendingToken!=null ) { line = offendingToken.getLine(); column = offendingToken.getCharPositionInLine(); } // TODO: actually set the right Grammar instance to get the filename // TODO: have to update all v2 grammar files for this. or use errormanager and tool to get the current grammar if (g != null) { file = g.getFileName(); } ST st = getMessageTemplate(); if ( arg!=null ) { st.add("arg", arg); } return super.toString(st); } }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } StringTemplate st = getMessageTemplate(); st.setAttribute("enclosingRule", probe.dfa.getNFADecisionStartState().enclosingRule.name); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } ST st = getMessageTemplate(); st.add("enclosingRule", probe.dfa.getNFADecisionStartState().enclosingRule.name); return super.toString(st); }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } StringTemplate st = getMessageTemplate(); st.setAttribute("enclosingRule", probe.dfa.getNFADecisionStartState().enclosingRule.name); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } ST st = getMessageTemplate(); st.add("enclosingRule", probe.dfa.getNFADecisionStartState().enclosingRule.name); return super.toString(st); }
@Override public String toString() { line = 0; column = 0; if ( offendingToken!=null ) { line = offendingToken.getLine(); column = offendingToken.getCharPositionInLine(); } if ( g!=null ) { file = g.getFileName(); } ST st = getMessageTemplate(); if ( arg!=null ) { st.add("arg", arg); } if ( arg2!=null ) { st.add("arg2", arg2); } return super.toString(st); } }
public String toString() { line = 0; column = 0; if ( offendingToken!=null ) { line = offendingToken.getLine(); column = offendingToken.getColumn(); } if ( g!=null ) { file = g.getFileName(); } StringTemplate st = getMessageTemplate(); if ( arg!=null ) { st.setAttribute("arg", arg); } if ( arg2!=null ) { st.setAttribute("arg2", arg2); } return super.toString(st); } }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } StringTemplate st = getMessageTemplate(); st.setAttribute("targetRules", targetRules); st.setAttribute("alt", alt); st.setAttribute("callSiteStates", callSiteStates); List labels = probe.getSampleNonDeterministicInputSequence(sampleBadState); String input = probe.getInputSequenceDisplay(labels); st.setAttribute("input", input); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } ST st = getMessageTemplate(); st.add("targetRules", targetRules); st.add("alt", alt); st.add("callSiteStates", callSiteStates); List<Label> labels = probe.getSampleNonDeterministicInputSequence(sampleBadState); String input = probe.getInputSequenceDisplay(labels); st.add("input", input); return super.toString(st); }
public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getColumn(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } StringTemplate st = getMessageTemplate(); st.setAttribute("targetRules", targetRules); st.setAttribute("alt", alt); st.setAttribute("callSiteStates", callSiteStates); List labels = probe.getSampleNonDeterministicInputSequence(sampleBadState); String input = probe.getInputSequenceDisplay(labels); st.setAttribute("input", input); return super.toString(st); }
@Override public String toString() { GrammarAST decisionASTNode = probe.dfa.getDecisionASTNode(); line = decisionASTNode.getLine(); column = decisionASTNode.getCharPositionInLine(); String fileName = probe.dfa.nfa.grammar.getFileName(); if ( fileName!=null ) { file = fileName; } ST st = getMessageTemplate(); st.add("targetRules", targetRules); st.add("alt", alt); st.add("callSiteStates", callSiteStates); List<Label> labels = probe.getSampleNonDeterministicInputSequence(sampleBadState); String input = probe.getInputSequenceDisplay(labels); st.add("input", input); return super.toString(st); }