public class Declaration extends Object implements Externalizable, AcceptsReadAccessor, Cloneable
Constructor and Description |
---|
Declaration() |
Declaration(String identifier,
InternalReadAccessor extractor,
Pattern pattern)
Construct.
|
Declaration(String identifier,
InternalReadAccessor extractor,
Pattern pattern,
boolean internalFact)
Construct.
|
Declaration(String identifier,
Pattern pattern)
Construct.
|
public Declaration()
public Declaration(String identifier, Pattern pattern)
identifier
- The name of the variable.pattern
- The pattern this variable is declared inpublic Declaration(String identifier, InternalReadAccessor extractor, Pattern pattern)
identifier
- The name of the variable.extractor
- The extractor for this variablepattern
- The pattern this variable is declared inpublic Declaration(String identifier, InternalReadAccessor extractor, Pattern pattern, boolean internalFact)
identifier
- The name of the variable.identifier
- The name of the variable.extractor
- The extractor for this variableinternalFact
- True if this is an internal fact created by the engine, like a collection result
of a collect CEpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public String getIdentifier()
public String getBindingName()
public void setBindingName(String bindingName)
public ValueType getValueType()
ValueType
.public Pattern getPattern()
public void setPattern(Pattern pattern)
public boolean isPatternDeclaration()
public void setReadAccessor(InternalReadAccessor readAccessor)
setReadAccessor
in interface AcceptsReadAccessor
public InternalReadAccessor getExtractor()
public Class<?> getDeclarationClass()
public void setDeclarationClass(Class<?> declarationClass)
public Object getValue(InternalWorkingMemory workingMemory, Object object)
public char getCharValue(InternalWorkingMemory workingMemory, Object object)
public int getIntValue(InternalWorkingMemory workingMemory, Object object)
public byte getByteValue(InternalWorkingMemory workingMemory, Object object)
public short getShortValue(InternalWorkingMemory workingMemory, Object object)
public long getLongValue(InternalWorkingMemory workingMemory, Object object)
public float getFloatValue(InternalWorkingMemory workingMemory, Object object)
public double getDoubleValue(InternalWorkingMemory workingMemory, Object object)
public boolean getBooleanValue(InternalWorkingMemory workingMemory, Object object)
public int getHashCode(InternalWorkingMemory workingMemory, Object object)
public boolean isGlobal()
public Method getNativeReadMethod()
public String getNativeReadMethodName()
public String getTypeName()
public String getBoxedTypeName()
public boolean isInternalFact()
public Declaration clone()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.