org.activiti.engine.impl.juel
类 Scanner

java.lang.Object
  继承者 org.activiti.engine.impl.juel.Scanner

public class Scanner
extends Object

Handcrafted scanner.

作者:
Christoph Beck

嵌套类摘要
static class Scanner.ExtensionToken
           
static class Scanner.ScanException
          Scan exception type
static class Scanner.Symbol
          Symbol type
static class Scanner.Token
           
 
字段摘要
protected  StringBuilder builder
           
 
构造方法摘要
protected Scanner(String input)
          Constructor.
 
方法摘要
protected  Scanner.Token fixed(Scanner.Symbol symbol)
           
 String getInput()
           
 int getPosition()
           
 Scanner.Token getToken()
           
protected  boolean isDigit(char c)
           
protected  boolean isEval()
           
protected  Scanner.Token keyword(String s)
           
 Scanner.Token next()
          Scan next token.
protected  Scanner.Token nextEval()
          token inside an eval expression
protected  Scanner.Token nextNumber()
          number token
protected  Scanner.Token nextString()
          string token
protected  Scanner.Token nextText()
          text token
protected  Scanner.Token nextToken()
           
protected  Scanner.Token token(Scanner.Symbol symbol, String value, int length)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

builder

protected final StringBuilder builder
构造方法详细信息

Scanner

protected Scanner(String input)
Constructor.

参数:
input - expression string
方法详细信息

getInput

public String getInput()

getToken

public Scanner.Token getToken()
返回:
current token

getPosition

public int getPosition()
返回:
current input position

isDigit

protected boolean isDigit(char c)
返回:
true iff the specified character is a digit

keyword

protected Scanner.Token keyword(String s)
参数:
s - name
返回:
token for the given keyword or null

fixed

protected Scanner.Token fixed(Scanner.Symbol symbol)
参数:
symbol -
返回:
token for the given symbol

token

protected Scanner.Token token(Scanner.Symbol symbol,
                              String value,
                              int length)

isEval

protected boolean isEval()

nextText

protected Scanner.Token nextText()
                          throws Scanner.ScanException
text token

抛出:
Scanner.ScanException

nextString

protected Scanner.Token nextString()
                            throws Scanner.ScanException
string token

抛出:
Scanner.ScanException

nextNumber

protected Scanner.Token nextNumber()
                            throws Scanner.ScanException
number token

抛出:
Scanner.ScanException

nextEval

protected Scanner.Token nextEval()
                          throws Scanner.ScanException
token inside an eval expression

抛出:
Scanner.ScanException

nextToken

protected Scanner.Token nextToken()
                           throws Scanner.ScanException
抛出:
Scanner.ScanException

next

public Scanner.Token next()
                   throws Scanner.ScanException
Scan next token. After calling this method, getToken() and getPosition() can be used to retreive the token's image and input position.

返回:
scanned token
抛出:
Scanner.ScanException


Copyright © 2013 Alfresco. All rights reserved.