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
CompileException
public boolean isIdentifier()
public boolean isIdentifier(String id)
public String getIdentifier() throws CompileException
CompileException
public boolean isLiteral()
public Object getLiteralValue() throws CompileException
CompileException
public boolean isOperator()
public boolean isOperator(String o)
public boolean isOperator(String[] os)
public String getOperator() throws CompileException
CompileException
public boolean isEOF()
Copyright © 2001–2013. All rights reserved.