public abstract class Scanner.Token extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier() |
String |
getKeyword() |
Object |
getLiteralValue() |
Location |
getLocation() |
String |
getOperator() |
boolean |
isEOF() |
boolean |
isIdentifier() |
boolean |
isIdentifier(String id) |
boolean |
isKeyword() |
boolean |
isKeyword(String k) |
boolean |
isKeyword(String[] ks) |
boolean |
isLiteral() |
boolean |
isOperator() |
boolean |
isOperator(String o) |
boolean |
isOperator(String[] os) |
public Location getLocation()
public boolean isKeyword()
public boolean isKeyword(String k)
public boolean isKeyword(String[] ks)
public String getKeyword() throws CompileException
CompileExceptionpublic boolean isIdentifier()
public boolean isIdentifier(String id)
public String getIdentifier() throws CompileException
CompileExceptionpublic boolean isLiteral()
public Object getLiteralValue() throws CompileException
CompileExceptionpublic boolean isOperator()
public boolean isOperator(String o)
public boolean isOperator(String[] os)
public String getOperator() throws CompileException
CompileExceptionpublic boolean isEOF()
Copyright © 2001–2013. All rights reserved.