org.exolab.jms.selector.parser
Class SelectorAST

java.lang.Object
  extended by antlr.BaseAST
      extended by antlr.CommonAST
          extended by org.exolab.jms.selector.parser.SelectorAST
All Implemented Interfaces:
antlr.collections.AST, java.io.Serializable

public class SelectorAST
extends antlr.CommonAST

Selector AST node. This adds expression type and context information used by the tree parser to validate expressions.

Version:
$Revision: 1.1 $ $Date: 2004/11/26 01:50:45 $
Author:
Tim Anderson
See Also:
Context, SelectorParser, SelectorTreeParser, Type, Serialized Form

Field Summary
 
Fields inherited from class antlr.BaseAST
down, right
 
Constructor Summary
SelectorAST()
          Construct a new SelectorAST
 
Method Summary
 Context getContext()
          Returns the context of the expression
 Type getReturnType()
          Returns the return type of the expression
 void initialize(antlr.Token token)
          Initialise this with a token
 void setReturnType(Type type)
          Sets the return type of the expression
 
Methods inherited from class antlr.CommonAST
getText, getType, initialize, initialize, setText, setType
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getTokenNames, removeChildren, setFirstChild, setNextSibling, setVerboseStringConversion, toString, toStringList, toStringTree, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SelectorAST

public SelectorAST()
Construct a new SelectorAST

Method Detail

initialize

public void initialize(antlr.Token token)
Initialise this with a token

Specified by:
initialize in interface antlr.collections.AST
Overrides:
initialize in class antlr.CommonAST
Parameters:
token - the token

setReturnType

public void setReturnType(Type type)
Sets the return type of the expression

Parameters:
type - the return type

getReturnType

public Type getReturnType()
Returns the return type of the expression

Returns:
the return type of the expression

getContext

public Context getContext()
Returns the context of the expression

Returns:
the context of the expression


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