EclipseLink 1.2.0, build 'v20091016-r5565' API Reference

org.eclipse.persistence.sdo.helper.extension
Class Token

java.lang.Object
  extended by org.eclipse.persistence.sdo.helper.extension.Token

public class Token
extends java.lang.Object

A token is used for processing an XPath Expression into postfix notation via OPStack. Each token knows its type (1-6) as well as its priority.


Field Summary
static int AND_PR
           
static int ARG
           
static int CLOSE
           
static Token CloseExp
           
static int DI
           
static int EQ_PR
           
static int GEQ_PR
           
static int GT_PR
           
static int LEQ_PR
           
static int LT_PR
           
static int NEQ_PR
           
static int OPEN
           
static Token OpenExp
           
static int OR_PR
           
static int POST
           
static int PRE
           
 
Constructor Summary
Token(java.lang.String name, int type)
          This constructor sets the name and type to the input values, and sets the priority to the input type.
Token(java.lang.String name, int type, int priority)
          This constructor sets the name, type and priority to the input values.
 
Method Summary
 java.lang.String getName()
           
 int getPriority()
           
 int getType()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ARG

public static final int ARG
See Also:
Constant Field Values

PRE

public static final int PRE
See Also:
Constant Field Values

OPEN

public static final int OPEN
See Also:
Constant Field Values

DI

public static final int DI
See Also:
Constant Field Values

POST

public static final int POST
See Also:
Constant Field Values

CLOSE

public static final int CLOSE
See Also:
Constant Field Values

OR_PR

public static final int OR_PR
See Also:
Constant Field Values

AND_PR

public static final int AND_PR
See Also:
Constant Field Values

EQ_PR

public static final int EQ_PR
See Also:
Constant Field Values

NEQ_PR

public static final int NEQ_PR
See Also:
Constant Field Values

LEQ_PR

public static final int LEQ_PR
See Also:
Constant Field Values

LT_PR

public static final int LT_PR
See Also:
Constant Field Values

GEQ_PR

public static final int GEQ_PR
See Also:
Constant Field Values

GT_PR

public static final int GT_PR
See Also:
Constant Field Values

OpenExp

public static Token OpenExp

CloseExp

public static Token CloseExp
Constructor Detail

Token

public Token(java.lang.String name,
             int type)
This constructor sets the name and type to the input values, and sets the priority to the input type.

Parameters:
name -
type -

Token

public Token(java.lang.String name,
             int type,
             int priority)
This constructor sets the name, type and priority to the input values.

Parameters:
name -
type -
priority -
Method Detail

getName

public java.lang.String getName()

getType

public int getType()

getPriority

public int getPriority()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

EclipseLink 1.2.0, build 'v20091016-r5565' API Reference