public class JavaMethodExtractor extends java.lang.Object implements IValueExtractor
Modifier and Type | Field and Description |
---|---|
protected MethodCall |
methodcall
The method call descriptor.
|
protected IValueExtractor |
objex
The object extractor.
|
protected IValueExtractor[] |
parameters
The parameter extractors.
|
Constructor and Description |
---|
JavaMethodExtractor(IValueExtractor objex,
MethodCall methodcall,
IValueExtractor[] parameters)
Create a new method extractor
|
Modifier and Type | Method and Description |
---|---|
AttributeSet |
getIndirectAttributes()
Get the set of indirect attribute types.
|
AttributeSet |
getRelevantAttributes()
Get the set of relevant attribute types.
|
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.
|
boolean |
isAffected(int tupleindex,
OAVAttributeType attr)
Test if a constraint evaluator is affected from a
change of a certain attribute.
|
java.lang.String |
toString()
Get the string representation.
|
protected IValueExtractor objex
protected MethodCall methodcall
protected IValueExtractor[] parameters
public JavaMethodExtractor(IValueExtractor objex, MethodCall methodcall, IValueExtractor[] parameters)
public java.lang.Object getValue(Tuple left, java.lang.Object right, java.lang.Object prefix, IOAVState state)
getValue
in interface IValueExtractor
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.public boolean isAffected(int tupleindex, OAVAttributeType attr)
isAffected
in interface IValueExtractor
tupleindex
- The tuple index (-1 for object).attr
- The attribute.public AttributeSet getRelevantAttributes()
getRelevantAttributes
in interface IValueExtractor
public AttributeSet getIndirectAttributes()
getIndirectAttributes
in interface IValueExtractor
public java.lang.String toString()
toString
in class java.lang.Object