Package org.evrete.api
Class ActiveField
java.lang.Object
org.evrete.api.ActiveField
public final class ActiveField extends Object implements TypeField
A wrapper for TypeField that will actually be in use
by the runtime. Unused fields will not get wrapped, thus avoiding unnecessary reads.
-
Field Summary
Fields Modifier and Type Field Description static ActiveField[]ZERO_ARRAY -
Constructor Summary
Constructors Constructor Description ActiveField(TypeField delegate, int valueIndex) -
Method Summary
Modifier and Type Method Description booleanequals(Object o)TypegetDeclaringType()TypeFieldgetDelegate()StringgetName()intgetValueIndex()Class<?>getValueType()inthashCode()ObjectreadValue(Object subject)StringtoString()
-
Field Details
-
Constructor Details
-
Method Details
-
getValueIndex
public int getValueIndex() -
getDelegate
-
getValueType
- Specified by:
getValueTypein interfaceTypeField
-
readValue
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceTypeField
-
getName
-
equals
-
hashCode
public int hashCode() -
toString
-