Class JavaPrefixExtractor
- java.lang.Object
-
- jadex.rules.rulesystem.rete.extractors.ObjectExtractor
-
- jadex.rules.rulesystem.rete.extractors.JavaPrefixExtractor
-
- All Implemented Interfaces:
IValueExtractor
public class JavaPrefixExtractor extends ObjectExtractor
Extractor for a Java attribute value.
-
-
Field Summary
-
Fields inherited from class jadex.rules.rulesystem.rete.extractors.ObjectExtractor
attr, key
-
-
Constructor Summary
Constructors Constructor Description JavaPrefixExtractor(OAVJavaAttributeType attr)Create a new extractor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetValue(Tuple left, java.lang.Object right, java.lang.Object prefix, IOAVState state)Get the value of an attribute from an object or tuple.java.lang.StringtoString()Get the string representation.-
Methods inherited from class jadex.rules.rulesystem.rete.extractors.ObjectExtractor
equals, getAttribute, getIndirectAttributes, getRelevantAttributes, hashCode, isAffected
-
-
-
-
Constructor Detail
-
JavaPrefixExtractor
public JavaPrefixExtractor(OAVJavaAttributeType attr)
Create a new extractor.
-
-
Method Detail
-
getValue
public java.lang.Object getValue(Tuple left, java.lang.Object right, java.lang.Object prefix, IOAVState state)
Get the value of an attribute from an object or tuple.- Specified by:
getValuein interfaceIValueExtractor- Overrides:
getValuein classObjectExtractor- Parameters:
left- The left input tuple.right- The right input object.prefix- The prefix input object (last value from previous extractor in a chain).state- The working memory.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classObjectExtractor- Returns:
- The string representation.
-
-