View Javadoc
1 /* FOREGEJ - FOrmatting REfactoring GEnerating Java 2 * 3 * Copyright (C) 2003 Andreas Arrgard 4 * 5 * This library is free software; you can redistribute it and/or 6 * modify it under the terms of the GNU Lesser General Public 7 * License as published by the Free Software Foundation; either 8 * version 2.1 of the License, or (at your option) any later version. 9 * 10 * This library is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 package com.octagroup.foregej.java.lang; 20 import antlr.CharScanner; 21 import antlr.InputBuffer; 22 import antlr.LexerSharedInputState; 23 import antlr.Token; 24 /*** 25 */ 26 public abstract class JavaLexerBase extends CharScanner 27 { 28 /*** 29 */ 30 public JavaLexerBase() 31 { 32 super(); 33 tokenObjectClass=JavaToken.class; 34 } 35 /*** 36 */ 37 public JavaLexerBase(InputBuffer arg0) 38 { 39 super(arg0); 40 tokenObjectClass=JavaToken.class; 41 } 42 /*** 43 */ 44 public JavaLexerBase(LexerSharedInputState arg0) 45 { 46 super(arg0); 47 tokenObjectClass=JavaToken.class; 48 } 49 /*** 50 * @param type 51 * @return 52 */ 53 public Token makeToken(int type) 54 { 55 tokenObjectClass=JavaTokenFactory.getInstance().getClass4Type(type); 56 JavaToken token=(JavaToken)super.makeToken(type); 57 token.setEndLine(getLine()); 58 token.setEndColumn(getColumn()); 59 token.setJavaLexer((JavaLexerBase)this); 60 return token; 61 } 62 }

This page was automatically generated by Maven