org.jacorb.notification.filter.etcl

Class DomainNameShorthandNode

Implemented Interfaces:
ComponentName, TCLParserTokenTypes

public class DomainNameShorthandNode
extends ETCLComponentName

DomainNameShorthandNode.java Created: Thu Apr 10 12:08:42 2003

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

Author:
Alphonse Bendt

Field Summary

static String
SHORT_NAME

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

DomainNameShorthandNode()

Method Summary

void
acceptInOrder(AbstractTCLVisitor v)
accept a visitor for traversal Inorder
void
acceptPostOrder(AbstractTCLVisitor v)
accept a visitor for traversal in Postorder.
void
acceptPreOrder(AbstractTCLVisitor v)
accept a visitor for traversal in Preorder.
EvaluationResult
evaluate(EvaluationContext context)
Evaluate this Node.
String
getComponentName()
String
toString()

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

acceptInOrder, acceptPostOrder, acceptPreOrder, evaluate, getComponentName, setComponentName, 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

Field Details

SHORT_NAME

public static final String SHORT_NAME

Constructor Details

DomainNameShorthandNode

public DomainNameShorthandNode()

Method Details

acceptInOrder

public void acceptInOrder(AbstractTCLVisitor v)
accept a visitor for traversal Inorder
Overrides:
acceptInOrder in interface ETCLComponentName

Parameters:


acceptPostOrder

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

Parameters:


acceptPreOrder

public void acceptPreOrder(AbstractTCLVisitor v)
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 ETCLComponentName

Parameters:


evaluate

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

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()
Specified by:
getComponentName in interface ComponentName
Overrides:
getComponentName in interface ETCLComponentName


toString

public String toString()
Overrides:
toString in interface ETCLComponentName