public class GroovySourceToken extends Token
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Fields inherited from class | Fields |
---|---|
class Token |
MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, INVALID_TYPE, EOF_TYPE, SKIP, badToken |
Constructor and description |
---|
GroovySourceToken
(int t) Constructor using a token type |
Type | Name and description |
---|---|
int |
getColumn() |
int |
getColumnLast() |
int |
getLine() |
int |
getLineLast() |
String |
getText() get the source token text |
void |
setColumn(int c) |
void |
setColumnLast(int colLast) |
void |
setLine(int l) |
void |
setLineLast(int lineLast) |
void |
setText(String s) set the source token text |
String |
toString() |
Methods inherited from class | Name |
---|---|
class Token |
getText, setType, getColumn, setText, getLine, setLine, getFilename, setColumn, setFilename, toString, getType, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor using a token type
t
- the typeget the source token text
set the source token text
s
- the textCopyright © 2003-2015 The Apache Software Foundation. All rights reserved.