Java 类org.antlr.runtime.DFA 实例源码

项目:n4js    文件:AbstractInternalHighlightingAntlrParser.java   
/**
 * Extracted to reduce generated Antlr parser size.
 */
protected static short[][] unpackEncodedStringArray(String[] arr) {
    int numStates = arr.length;
    short[][] result = new short[numStates][];
    for (int i = 0; i < numStates; i++) {
        result[i] = DFA.unpackEncodedString(arr[i]);
    }
    return result;
}
项目:xtext-core    文件:AbstractInternalAntlrParser.java   
/**
 * @since 2.9
 */
protected static short[][] unpackEncodedStringArray(String[] arr) {
    int numStates = arr.length;
    short[][] result = new short[numStates][];
    for (int i = 0; i < numStates; i++) {
        result[i] = DFA.unpackEncodedString(arr[i]);
    }
    return result;
}
项目:xtext-core    文件:BaseInternalContentAssistParser.java   
protected static short[][] unpackEncodedStringArray(String[] arr) {
    int numStates = arr.length;
    short[][] result = new short[numStates][];
    for (int i = 0; i < numStates; i++) {
        result[i] = DFA.unpackEncodedString(arr[i]);
    }
    return result;
}