Package net.sf.jcontracts.antlr

Examples of net.sf.jcontracts.antlr.ANTLRHashString


    public PreprocessorLexer(CharBufferNoBacktrackingNoInteractive cb)
    {
        super(cb);
        literals_ = new Hashtable();
        literals_.put(new ANTLRHashString("catch", this), new Integer(27));
        literals_.put(new ANTLRHashString("exception", this), new Integer(26));
        literals_.put(new ANTLRHashString("class", this), new Integer(6));
        literals_.put(new ANTLRHashString("public", this), new Integer(21));
        literals_.put(new ANTLRHashString("tokens", this), new Integer(16));
        literals_.put(new ANTLRHashString("returns", this), new Integer(24));
        literals_.put(new ANTLRHashString("private", this), new Integer(20));
        literals_.put(new ANTLRHashString("protected", this), new Integer(19));
        literals_.put(new ANTLRHashString("extends", this), new Integer(8));
        caseSensitiveLiterals_ = true;
    }
View Full Code Here


    public JavaLexer(CharBufferNoBacktrackingNoInteractive characterBuffer)
    {
        super(characterBuffer);

        literals_ = new Hashtable();
        literals_.put(new ANTLRHashString("synchronized", this), new Integer(32));
        literals_.put(new ANTLRHashString("throws", this), new Integer(44));
        literals_.put(new ANTLRHashString("long", this), new Integer(17));
        literals_.put(new ANTLRHashString("true", this), new Integer(99));
        literals_.put(new ANTLRHashString("transient", this), new Integer(26));
        literals_.put(new ANTLRHashString("protected", this), new Integer(24));
        literals_.put(new ANTLRHashString("false", this), new Integer(100));
        literals_.put(new ANTLRHashString("void", this), new Integer(10));
        literals_.put(new ANTLRHashString("instanceof", this), new Integer(96));
        literals_.put(new ANTLRHashString("int", this), new Integer(15));
        literals_.put(new ANTLRHashString("package", this), new Integer(5));
        literals_.put(new ANTLRHashString("class", this), new Integer(34));
        literals_.put(new ANTLRHashString("static", this), new Integer(25));
        literals_.put(new ANTLRHashString("const", this), new Integer(33));
        literals_.put(new ANTLRHashString("while", this), new Integer(49));
        literals_.put(new ANTLRHashString("char", this), new Integer(13));
        literals_.put(new ANTLRHashString("short", this), new Integer(14));
        literals_.put(new ANTLRHashString("abstract", this), new Integer(28));
        literals_.put(new ANTLRHashString("for", this), new Integer(48));
        literals_.put(new ANTLRHashString("if", this), new Integer(46));
        literals_.put(new ANTLRHashString("extends", this), new Integer(38));
        literals_.put(new ANTLRHashString("native", this), new Integer(29));
        literals_.put(new ANTLRHashString("volatile", this), new Integer(30));
        literals_.put(new ANTLRHashString("import", this), new Integer(6));
        literals_.put(new ANTLRHashString("do", this), new Integer(50));
        literals_.put(new ANTLRHashString("interface", this), new Integer(35));
        literals_.put(new ANTLRHashString("try", this), new Integer(59));
        literals_.put(new ANTLRHashString("else", this), new Integer(47));
        literals_.put(new ANTLRHashString("public", this), new Integer(23));
        literals_.put(new ANTLRHashString("continue", this), new Integer(52));
        literals_.put(new ANTLRHashString("throw", this), new Integer(57));
        literals_.put(new ANTLRHashString("return", this), new Integer(53));
        literals_.put(new ANTLRHashString("final", this), new Integer(27));
        literals_.put(new ANTLRHashString("switch", this), new Integer(54));
        literals_.put(new ANTLRHashString("super", this), new Integer(98));
        literals_.put(new ANTLRHashString("catch", this), new Integer(61));
        literals_.put(new ANTLRHashString("new", this), new Integer(102));
        literals_.put(new ANTLRHashString("this", this), new Integer(97));
        literals_.put(new ANTLRHashString("float", this), new Integer(16));
        literals_.put(new ANTLRHashString("goto", this), new Integer(58));
        literals_.put(new ANTLRHashString("private", this), new Integer(22));
        literals_.put(new ANTLRHashString("double", this), new Integer(18));
        literals_.put(new ANTLRHashString("finally", this), new Integer(60));
        literals_.put(new ANTLRHashString("implements", this), new Integer(40));
        literals_.put(new ANTLRHashString("break", this), new Integer(51));
        literals_.put(new ANTLRHashString("null", this), new Integer(101));
        literals_.put(new ANTLRHashString("case", this), new Integer(55));
        literals_.put(new ANTLRHashString("default", this), new Integer(56));
        literals_.put(new ANTLRHashString("byte", this), new Integer(12));
        literals_.put(new ANTLRHashString("boolean", this), new Integer(11));
        literals_.put(new ANTLRHashString("threadsafe", this), new Integer(31));
        caseSensitiveLiterals_ = true;
    }
View Full Code Here

TOP

Related Classes of net.sf.jcontracts.antlr.ANTLRHashString

Copyright © 2018 www.massapicom. 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.