public class TraitField extends Object implements Serializable, Externalizable
Modifier and Type | Class and Description |
---|---|
static class |
TraitField.DefaultValueHierarchy |
Constructor and Description |
---|
TraitField() |
TraitField(TypeWrapper klass,
Object value,
Object defaultValue,
short pos) |
Modifier and Type | Method and Description |
---|---|
void |
disableExplicitSet() |
Object |
don(TraitType trait,
Object defaultValue,
TypeWrapper wrapper,
boolean logical,
WorkingMemory wm) |
void |
enableExplicitSet() |
Object |
get() |
Object |
get(TypeWrapper klass) |
Object |
getDefault() |
short |
getPosition() |
Set<Class<?>> |
getRangeTypes() |
void |
readExternal(ObjectInput in) |
Object |
set(Object value,
TypeWrapper klass,
WorkingMemory wm) |
Object |
shed(TraitType trait,
TypeWrapper rangeWrapper,
TypeWrapper asWrapper,
WorkingMemory workingMemory) |
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public TraitField()
public TraitField(TypeWrapper klass, Object value, Object defaultValue, short pos)
public Object set(Object value, TypeWrapper klass, WorkingMemory wm)
public Object get()
public Object get(TypeWrapper klass)
public Object don(TraitType trait, Object defaultValue, TypeWrapper wrapper, boolean logical, WorkingMemory wm)
public Object shed(TraitType trait, TypeWrapper rangeWrapper, TypeWrapper asWrapper, WorkingMemory workingMemory)
public Object getDefault()
public void disableExplicitSet()
public void enableExplicitSet()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public short getPosition()
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.