jfun.yan.xml.nuts.optional
Class SameNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nut.ComponentNut
          extended by jfun.yan.xml.nuts.optional.BinaryNut
              extended by jfun.yan.xml.nuts.optional.BinaryPredicateNut
                  extended by jfun.yan.xml.nuts.optional.SameNut
All Implemented Interfaces:
java.io.Serializable

public class SameNut
extends BinaryPredicateNut

A tag that tests if two references are pointing to the same object.

Author:
Ben Yu Nov 11, 2005 3:45:19 PM
See Also:
Serialized Form

Constructor Summary
SameNut()
           
 
Method Summary
 boolean predicate(java.lang.Object v1, java.lang.Object v2)
          The predicate.
 
Methods inherited from class jfun.yan.xml.nuts.optional.BinaryPredicateNut
eval
 
Methods inherited from class jfun.yan.xml.nuts.optional.BinaryNut
getComponent1, getComponent2, getType1, getType2, getVal1, getVal2, isVal1Set, isVal2Set, set, setType1, setType2, setVal1, setVal2
 
Methods inherited from class jfun.yan.xml.nut.Nut
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SameNut

public SameNut()
Method Detail

predicate

public boolean predicate(java.lang.Object v1,
                         java.lang.Object v2)
Description copied from class: BinaryPredicateNut
The predicate.

Specified by:
predicate in class BinaryPredicateNut
Parameters:
v1 - the first value.
v2 - the second value.