org.jacorb.notification.filter.etcl

Class ETCLComponentName

Implemented Interfaces:
ComponentName, TCLParserTokenTypes
Known Direct Subclasses:
CurrentTimeNode, DomainNameShorthandNode, EventNameShorthandNode, TypeNameShorthandNode

public class ETCLComponentName
extends AbstractTCLNode
implements ComponentName

node that represents a COMPONENT Name

Version:
$Id: ETCLComponentName.java,v 1.3 2004/05/06 12:39:59 nicolas Exp $

Fields inherited from interface org.jacorb.notification.filter.etcl.TCLParserTokenTypes

AND, ARRAY, ASSOC, DEFAULT, DISCRIM, DIV, DOLLAR, DOT, EOF, EQ, EXIST, FALSE, FIRST, GT, GTE, IDENTIFIER, IMPLICIT, IN, LBRACKET, LENGTH, LPAREN, LT, LTE, MAX, MIN, MINUS, MULT, NEQ, NOT, NULL_TREE_LOOKAHEAD, NUMBER, NUM_FLOAT, OR, PLUS, RANDOM, RBRACKET, REPO_ID, RPAREN, RUNTIME_VAR, STRING, SUBSTR, TRUE, TYPE, TYPE_ID, UNARY_MINUS, UNARY_PLUS, UNION_POS, WITH, WS

Constructor Summary

ETCLComponentName()
ETCLComponentName(Token tok)

Method Summary

void
acceptInOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal Inorder
void
acceptPostOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Postorder.
void
acceptPreOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Preorder.
EvaluationResult
evaluate(EvaluationContext context)
Evaluate this Node.
String
getComponentName()
access the complete ComponentName.
void
setComponentName(String name)
String
toString()

Methods inherited from class org.jacorb.notification.filter.etcl.AbstractTCLNode

acceptInOrder, acceptPostOrder, acceptPreOrder, evaluate, getKind, getName, getNameForType, getNextType, getType, hasNextSibling, initialize, initialize, initialize, isBoolean, isNumber, isStatic, isString, left, printToStringBuffer, right, setKind, setType, toStringTree

Constructor Details

ETCLComponentName

protected ETCLComponentName()


ETCLComponentName

public ETCLComponentName(Token tok)

Method Details

acceptInOrder

public void acceptInOrder(AbstractTCLVisitor visitor)
            throws VisitorException
accept a visitor for traversal Inorder
Overrides:
acceptInOrder in interface AbstractTCLNode

Parameters:
visitor -


acceptPostOrder

public void acceptPostOrder(AbstractTCLVisitor visitor)
            throws VisitorException
accept a visitor for traversal in Postorder. the right and left subtrees are visited before the root node is visited.
Overrides:
acceptPostOrder in interface AbstractTCLNode

Parameters:
visitor -


acceptPreOrder

public void acceptPreOrder(AbstractTCLVisitor visitor)
            throws VisitorException
accept a visitor for traversal in Preorder. the root node is visited before the left and the right subtrees are visited.
Overrides:
acceptPreOrder in interface AbstractTCLNode

Parameters:
visitor -


evaluate

public EvaluationResult evaluate(EvaluationContext context)
            throws EvaluationException
Evaluate this Node.
Overrides:
evaluate in interface AbstractTCLNode

Parameters:
context - an EvaluationContext value contains all context information necessary for the evaluation

Returns:
an EvaluationResult value

Throws:
EvaluationException - these errors mostly occur if e.g. an expression contains a reference to a non-existent struct member or if it is tried to add a string and a number


getComponentName

public String getComponentName()
access the complete ComponentName.
Specified by:
getComponentName in interface ComponentName


setComponentName

public void setComponentName(String name)


toString

public String toString()