com.go.tea.parsetree
Class ConcatenateExpression

java.lang.Object
  |
  +--com.go.tea.parsetree.Node
        |
        +--com.go.tea.parsetree.Expression
              |
              +--com.go.tea.parsetree.BinaryExpression
                    |
                    +--com.go.tea.parsetree.ConcatenateExpression
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class ConcatenateExpression
extends BinaryExpression

A ConcatenateExpression takes two Expressions, converts their values to strings and returns a new string with the concatenated result. The operator should only be Token.CONCAT.

Version:
14 , 9/07/00
Author:
Brian S O'Neill
See Also:
Serialized Form

Inner classes inherited from class com.go.tea.parsetree.Expression
Expression.Conversion
 
Constructor Summary
ConcatenateExpression(SourceInfo info, Token operator, Expression left, Expression right)
           
 
Method Summary
 java.lang.Object accept(NodeVisitor visitor)
          Every subclass of Node must override this method with the following: return visitor.visit(this).
 boolean isExceptionPossible()
          Returns true if an exception can be thrown while executing this Expression.
 
Methods inherited from class com.go.tea.parsetree.BinaryExpression
clone, getLeftExpression, getOperator, getRightExpression, setLeftExpression, setRightExpression, setType
 
Methods inherited from class com.go.tea.parsetree.Expression
convertTo, convertTo, getConversionChain, getInitialType, getType, getValue, isValueKnown, setInitialType
 
Methods inherited from class com.go.tea.parsetree.Node
getSourceInfo, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConcatenateExpression

public ConcatenateExpression(SourceInfo info,
                             Token operator,
                             Expression left,
                             Expression right)
Method Detail

accept

public java.lang.Object accept(NodeVisitor visitor)
Description copied from class: Node
Every subclass of Node must override this method with the following: return visitor.visit(this).
Overrides:
accept in class Expression
Following copied from class: com.go.tea.parsetree.Node
Parameters:
visitor - A visitor of this Node
Returns:
Node The Node returned by the visitor
See Also:
NodeVisitor

isExceptionPossible

public boolean isExceptionPossible()
Description copied from class: Expression
Returns true if an exception can be thrown while executing this Expression. By default, returns true only if a type conversion could cause an exception.
Overrides:
isExceptionPossible in class BinaryExpression