|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.drools.rule.Declaration
public class Declaration
Constructor Summary | |
---|---|
Declaration(java.lang.String identifier,
Extractor extractor,
Pattern pattern)
Construct. |
|
Declaration(java.lang.String identifier,
Extractor extractor,
Pattern pattern,
boolean internalFact)
Construct. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object object)
|
boolean |
getBooleanValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
byte |
getByteValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
char |
getCharValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
double |
getDoubleValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
Extractor |
getExtractor()
Returns the Extractor expression |
float |
getFloatValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
int |
getHashCode(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
java.lang.String |
getIdentifier()
Retrieve the variable's identifier. |
int |
getIntValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
long |
getLongValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
java.lang.reflect.Method |
getNativeReadMethod()
|
java.lang.Object |
getNonShadowedValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
Pattern |
getPattern()
Returns the index of the pattern |
short |
getShortValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
java.lang.Object |
getValue(InternalWorkingMemory workingMemory,
java.lang.Object object)
|
ValueType |
getValueType()
Retrieve the ValueType . |
int |
hashCode()
|
boolean |
isGlobal()
|
protected boolean |
isInternalFact()
|
boolean |
isPatternDeclaration()
Returns true if this declaration is a pattern declaration |
void |
setPattern(Pattern pattern)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Declaration(java.lang.String identifier, Extractor extractor, Pattern pattern)
identifier
- The name of the variable.objectType
- The type of this variable declaration.order
- The index within a rule.public Declaration(java.lang.String identifier, Extractor extractor, Pattern pattern, boolean internalFact)
identifier
- The name of the variable.objectType
- The type of this variable declaration.order
- The index within a rule.internalFact
- True if this is an internal fact created by the engine, like a collection result
of a collect CEMethod Detail |
---|
public java.lang.String getIdentifier()
public ValueType getValueType()
ValueType
.
public Pattern getPattern()
public void setPattern(Pattern pattern)
public boolean isPatternDeclaration()
public Extractor getExtractor()
public java.lang.Object getValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public java.lang.Object getNonShadowedValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public char getCharValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public int getIntValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public byte getByteValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public short getShortValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public long getLongValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public float getFloatValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public double getDoubleValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public boolean getBooleanValue(InternalWorkingMemory workingMemory, java.lang.Object object)
public int getHashCode(InternalWorkingMemory workingMemory, java.lang.Object object)
public boolean isGlobal()
public java.lang.reflect.Method getNativeReadMethod()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
protected boolean isInternalFact()
public java.lang.Object clone()
clone
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |