| java.lang.Object de.odysseus.el.tree.impl.Scanner
Scanner | final class Scanner (Code) | | Handcrafted scanner.
author: Christoph Beck |
Inner Class :static class ScanException extends Exception | |
Inner Class :static enum Symbol | |
Scanner | Scanner(String input)(Code) | | Constructor.
Parameters: input - expression string |
getImage | String getImage()(Code) | | expose current token image. If the current token is of type text or string,
this method returns the unescaped value instead of the original image.
|
getPosition | int getPosition()(Code) | | current position
|
next | Symbol next() throws ScanException(Code) | | Scan next token.
After calling this method,
Scanner.getImage() and
Scanner.getPosition() can be used to retreive the token's image and input position.
symbol describing the token type. |
|
|