org.apache.velocity.runtime.parser.node
クラス ASTEQNode

java.lang.Object
  拡張org.apache.velocity.runtime.parser.node.SimpleNode
      拡張org.apache.velocity.runtime.parser.node.ASTEQNode
すべての実装インタフェース:
Node

public class ASTEQNode
extends SimpleNode

Handles the equivalence operator == This operator requires that the LHS and RHS are both of the same Class.

バージョン:
$Id: ASTEQNode.java,v 1.8 2001/08/07 21:56:30 geirm Exp $

フィールドの概要
 
クラス org.apache.velocity.runtime.parser.node.SimpleNode から継承したフィールド
children, first, id, info, invalid, last, parent, parser, rsvc, state
 
コンストラクタの概要
ASTEQNode(int id)
           
ASTEQNode(Parser p, int id)
           
 
メソッドの概要
 boolean evaluate(InternalContextAdapter context)
          Calculates the value of the logical expression arg1 == arg2 All class types are supported.
 java.lang.Object jjtAccept(ParserVisitor visitor, java.lang.Object data)
          Accept the visitor.
 
クラス org.apache.velocity.runtime.parser.node.SimpleNode から継承したメソッド
childrenAccept, dump, execute, getColumn, getFirstToken, getInfo, getLastToken, getLine, getType, init, isInvalid, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, literal, render, setFirstToken, setInfo, setInvalid, toString, value
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ASTEQNode

public ASTEQNode(int id)

ASTEQNode

public ASTEQNode(Parser p,
                 int id)
メソッドの詳細

jjtAccept

public java.lang.Object jjtAccept(ParserVisitor visitor,
                                  java.lang.Object data)
Accept the visitor.

定義:
インタフェース Node 内の jjtAccept
オーバーライド:
クラス SimpleNode 内の jjtAccept

evaluate

public boolean evaluate(InternalContextAdapter context)
                 throws MethodInvocationException
Calculates the value of the logical expression arg1 == arg2 All class types are supported. Uses equals() to determine equivalence. This should work as we represent with the types we already support, and anything else that implements equals() to mean more than identical references.

定義:
インタフェース Node 内の evaluate
オーバーライド:
クラス SimpleNode 内の evaluate
パラメータ:
context - internal context used to evaluate the LHS and RHS
戻り値:
true if equivalent, false if not equivalent, false if not compatible arguments, or false if either LHS or RHS is null
例外:
MethodInvocationException


Copyright © 2003 Apache Software Foundation. All Rights Reserved.