org.apache.myfaces.trinidadinternal.el
Class Tokenizer

java.lang.Object
  extended by org.apache.myfaces.trinidadinternal.el.Tokenizer
All Implemented Interfaces:
java.util.Iterator<Tokenizer.Token>

public class Tokenizer
extends java.lang.Object
implements java.util.Iterator<Tokenizer.Token>

converts a EL expression into tokens.

Author:
The Oracle ADF Faces Team

Nested Class Summary
 class Tokenizer.Token
           
 
Field Summary
static int EXP_END_TYPE
          Identifies the expression end character.
static int EXP_START_TYPE
          Identifies the expression start string.
static int NUMBER_TYPE
          identifies a number eg: "123", "321.321"
static int OPER_TYPE
          Identifies an operator.
static int QUOTED_TYPE
          Identifies a quotation.
static int TEXT_TYPE
          Identifies some plain text
static int VAR_TYPE
          Identifies a variable usage.
static int WHITE_SPACE_TYPE
          Identifies a series of whitespace characters
 
Constructor Summary
Tokenizer(java.lang.String expression)
          Creates a new Tokenizer
 
Method Summary
 boolean hasNext()
           
 Tokenizer.Token next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXT_TYPE

public static final int TEXT_TYPE
Identifies some plain text

See Also:
Constant Field Values

EXP_START_TYPE

public static final int EXP_START_TYPE
Identifies the expression start string. This string is two charaters long and is: "#{"

See Also:
Constant Field Values

EXP_END_TYPE

public static final int EXP_END_TYPE
Identifies the expression end character. This is character is "}"

See Also:
Constant Field Values

WHITE_SPACE_TYPE

public static final int WHITE_SPACE_TYPE
Identifies a series of whitespace characters

See Also:
Constant Field Values

QUOTED_TYPE

public static final int QUOTED_TYPE
Identifies a quotation. Eg: "quotation", 'quotation', 'he said, "foo!"' , "it's it". More examples: "foo \" bar" , 'foo \' bar'

See Also:
Constant Field Values

VAR_TYPE

public static final int VAR_TYPE
Identifies a variable usage. Eg: "row", "row.name", "foo.bar.baz"

See Also:
Constant Field Values

NUMBER_TYPE

public static final int NUMBER_TYPE
identifies a number eg: "123", "321.321"

See Also:
Constant Field Values

OPER_TYPE

public static final int OPER_TYPE
Identifies an operator. eg: ">", "[", "+", "?"

See Also:
Constant Field Values
Constructor Detail

Tokenizer

public Tokenizer(java.lang.String expression)
Creates a new Tokenizer

Parameters:
expression - the expression to tokenize
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Tokenizer.Token>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Tokenizer.Token>

next

public Tokenizer.Token next()
Specified by:
next in interface java.util.Iterator<Tokenizer.Token>


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.