org.drools.rule
Class Declaration

java.lang.Object
  |
  +--org.drools.rule.Declaration

public class Declaration
extends java.lang.Object

A typed, named variable for Condition evaluation.

Author:
bob mcwhirter
See Also:
ObjectType, Condition

Field Summary
static Declaration[] EMPTY_ARRAY
          Empty array.
 
Constructor Summary
Declaration(ObjectType objectType, java.lang.String identifier)
          Construct.
 
Method Summary
 boolean equals(java.lang.Object thatObj)
          Determine if another Declaration is semantically equivelent to this one.
 java.lang.String getIdentifier()
          Retrieve the variable's identifier.
 ObjectType getObjectType()
          Retrieve the ObjectType of this Declaration.
 java.lang.String toString()
          Produce debug string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

EMPTY_ARRAY

public static final Declaration[] EMPTY_ARRAY
Empty array.

Constructor Detail

Declaration

public Declaration(ObjectType objectType,
                   java.lang.String identifier)
Construct.

Parameters:
objectType - The type of this variable declaration.
identifier - The name of the variable.
Method Detail

getObjectType

public ObjectType getObjectType()
Retrieve the ObjectType of this Declaration.

Returns:
The ObjectType of this Declaration.

getIdentifier

public java.lang.String getIdentifier()
Retrieve the variable's identifier.

Returns:
The variable's identifier.

equals

public boolean equals(java.lang.Object thatObj)
Determine if another Declaration is semantically equivelent to this one.

Overrides:
equals in class java.lang.Object
Parameters:
thatObj - The object to compare to.
Returns:
true if thatObj is semantically equal to this object.

toString

public java.lang.String toString()
Produce debug string.

Overrides:
toString in class java.lang.Object
Returns:
debug string.


Copyright © 2001-2003 The Werken Company. All Rights Reserved.