站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

Declaration (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.rule
Class Declaration

java.lang.Object
  extended by org.drools.rule.Declaration
All Implemented Interfaces:
Serializable

public class Declaration
extends Object
implements Serializable

Author:
Mark Proctor, Bob McWhirter, Simon Harris
See Also:
Serialized Form

Constructor Summary
Declaration(String identifier, Extractor extractor, Pattern pattern)
          Construct.
 
Method Summary
 boolean equals(Object object)
           
 boolean getBooleanValue(Object object)
           
 byte getByteValue(Object object)
           
 char getCharValue(Object object)
           
 double getDoubleValue(Object object)
           
 Extractor getExtractor()
          Returns the Extractor expression
 float getFloatValue(Object object)
           
 int getHashCode(Object object)
           
 String getIdentifier()
          Retrieve the variable's identifier.
 int getIntValue(Object object)
           
 long getLongValue(Object object)
           
 Pattern getPattern()
          Returns the index of the pattern
 short getShortValue(Object object)
           
 Object getValue(Object object)
           
 ValueType getValueType()
          Retrieve the ValueType.
 int hashCode()
           
 void setPattern(Pattern pattern)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Declaration

public Declaration(String identifier,
                   Extractor extractor,
                   Pattern pattern)
Construct.

Parameters:
identifier - The name of the variable.
objectType - The type of this variable declaration.
order - The index within a rule.
Method Detail

getIdentifier

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

Returns:
The variable's identifier.

getValueType

public ValueType getValueType()
Retrieve the ValueType.

Returns:
The ValueType.

getPattern

public Pattern getPattern()
Returns the index of the pattern

Returns:
the pattern

setPattern

public void setPattern(Pattern pattern)

getExtractor

public Extractor getExtractor()
Returns the Extractor expression

Returns:

getValue

public Object getValue(Object object)

getCharValue

public char getCharValue(Object object)

getIntValue

public int getIntValue(Object object)

getByteValue

public byte getByteValue(Object object)

getShortValue

public short getShortValue(Object object)

getLongValue

public long getLongValue(Object object)

getFloatValue

public float getFloatValue(Object object)

getDoubleValue

public double getDoubleValue(Object object)

getBooleanValue

public boolean getBooleanValue(Object object)

getHashCode

public int getHashCode(Object object)

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object object)
Overrides:
equals in class Object


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.