org.exolab.jms.selector
Class Context

java.lang.Object
  |
  +--org.exolab.jms.selector.Context

public final class Context
extends java.lang.Object

This class encapsulates the context of a parsed token.

Version:
$Revision: 1.3 $ $Date: 2003/08/09 15:49:50 $
Author:
Tim Anderson
See Also:
SelectorException, SelectorAST

Constructor Summary
Context(int line, int column)
          Construct a new Context
 
Method Summary
 int getColumn()
          Returns the column where the token was encountered
 int getLine()
          Returns the line where the token was encountered
 java.lang.String toString()
          Returns a string representation of this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Context

public Context(int line,
               int column)
Construct a new Context
Parameters:
line - the line where the token was encountered
column - the column where the token was encountered
Method Detail

getLine

public int getLine()
Returns the line where the token was encountered
Returns:
the line number

getColumn

public int getColumn()
Returns the column where the token was encountered
Returns:
the column number

toString

public java.lang.String toString()
Returns a string representation of this
Overrides:
toString in class java.lang.Object
Returns:
a string representation of this


Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.