Module graph

Class ManageableType.Field

All Implemented Interfaces:
Field, FieldChain, Member
Direct Known Subclasses:
ManageableType.ArrayComponent, Node.NType.Field, SCOType.Field
Enclosing class:
ManageableType

public abstract class ManageableType.Field extends PersistenceField
  • Field Details

  • Constructor Details

    • Field

      protected Field(String name, int modifiers, Type type, Type componentType)
  • Method Details

    • getType

      public final Type getType()
    • getQuantity

      public final Quantity getQuantity()
      Specified by:
      getQuantity in class PersistenceField
    • setQuantity

      public final void setQuantity(Quantity q)
    • getMinValue

      public final Number getMinValue()
      Specified by:
      getMinValue in class PersistenceField
    • setMinValue

      public final void setMinValue(Number min)
    • getMaxValue

      public final Number getMaxValue()
      Specified by:
      getMaxValue in class PersistenceField
    • setMaxValue

      public final void setMaxValue(Number max)
    • getLastField

      public ManageableType.Field getLastField()
      Specified by:
      getLastField in class PersistenceField
    • length

      public int length()
    • getSubfield

      public ManageableType.Field getSubfield(int index)
      Specified by:
      getSubfield in class PersistenceField
    • getShallowSubchain

      public PersistenceField getShallowSubchain(int begin)
      Specified by:
      getShallowSubchain in class PersistenceField
    • concat

      public IndirectField concat(PersistenceField field)
    • cast

      public IndirectField cast(Type type)
    • getFieldId

      public final int getFieldId()
    • isGetReturningCopy

      public boolean isGetReturningCopy()
    • containsSCO

      public final boolean containsSCO()
    • getArrayComponent

      public final ManageableType.ArrayComponent getArrayComponent()
    • getArrayChain

      public final IndirectField getArrayChain(int dimensions)
      Returns a field chain starting with this, followed by dimensions array components.
      Parameters:
      dimensions - the number of array components to append
      Returns:
      a field chain for an access of array components of this field
    • isArrayComponent

      public final boolean isArrayComponent()
    • getSerializationMethod

      public final int getSerializationMethod()
    • overlaps

      public boolean overlaps(int[] tindices, FieldChain field, int[] findices)
    • setObject

      public final void setObject(Object object, Object value)
    • setBoolean

      public void setBoolean(Object o, int[] indices, boolean value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getBoolean

      public boolean getBoolean(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getBoolean

      public boolean getBoolean(Object object)
    • setBoolean

      public void setBoolean(Object object, boolean value)
    • insertBoolean

      public void insertBoolean(Object o, int[] indices, boolean value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeBoolean

      public void removeBoolean(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeBoolean in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setByte

      public void setByte(Object o, int[] indices, byte value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setByte in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getByte

      public byte getByte(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getByte in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getByte

      public byte getByte(Object object)
    • setByte

      public void setByte(Object object, byte value)
    • insertByte

      public void insertByte(Object o, int[] indices, byte value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertByte in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeByte

      public void removeByte(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeByte in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setShort

      public void setShort(Object o, int[] indices, short value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setShort in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getShort

      public short getShort(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getShort in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getShort

      public short getShort(Object object)
    • setShort

      public void setShort(Object object, short value)
    • insertShort

      public void insertShort(Object o, int[] indices, short value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertShort in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeShort

      public void removeShort(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeShort in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setChar

      public void setChar(Object o, int[] indices, char value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setChar in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getChar

      public char getChar(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getChar in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getChar

      public char getChar(Object object)
    • setChar

      public void setChar(Object object, char value)
    • insertChar

      public void insertChar(Object o, int[] indices, char value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertChar in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeChar

      public void removeChar(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeChar in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setInt

      public void setInt(Object o, int[] indices, int value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setInt in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getInt

      public int getInt(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getInt in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getInt

      public int getInt(Object object)
    • setInt

      public void setInt(Object object, int value)
    • insertInt

      public void insertInt(Object o, int[] indices, int value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertInt in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeInt

      public void removeInt(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeInt in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setLong

      public void setLong(Object o, int[] indices, long value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setLong in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getLong

      public long getLong(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getLong in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getLong

      public long getLong(Object object)
    • setLong

      public void setLong(Object object, long value)
    • insertLong

      public void insertLong(Object o, int[] indices, long value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertLong in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeLong

      public void removeLong(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeLong in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setFloat

      public void setFloat(Object o, int[] indices, float value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setFloat in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getFloat

      public float getFloat(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getFloat in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getFloat

      public float getFloat(Object object)
    • setFloat

      public void setFloat(Object object, float value)
    • insertFloat

      public void insertFloat(Object o, int[] indices, float value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertFloat in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeFloat

      public void removeFloat(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeFloat in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setDouble

      public void setDouble(Object o, int[] indices, double value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setDouble in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getDouble

      public double getDouble(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getDouble in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getDouble

      public double getDouble(Object object)
    • setDouble

      public void setDouble(Object object, double value)
    • insertDouble

      public void insertDouble(Object o, int[] indices, double value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertDouble in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeDouble

      public void removeDouble(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeDouble in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • setObject

      public void setObject(Object o, int[] indices, Object value, Transaction t)
      Description copied from class: PersistenceField
      Sets the value of this field on the instance o using the given indices and t.
      Specified by:
      setObject in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the new value
      t - transaction context
      See Also:
    • getObject

      public Object getObject(Object o, int[] indices)
      Description copied from class: PersistenceField
      Returns the value of a field.
      Specified by:
      getObject in class PersistenceField
      Parameters:
      o - the instance for which the field value is returned
      indices - the indices for array fields
      Returns:
      the field's value for the instance pc
      See Also:
    • getObject

      public Object getObject(Object object)
    • setObjectImpl

      protected void setObjectImpl(Object object, Object value)
    • insertObject

      public void insertObject(Object o, int[] indices, Object value, Transaction t)
      Description copied from class: PersistenceField
      Inserts the given value into an array. This field has to be an array component indexed by indices. The new value will be inserted at the place of the indexed component.
      Specified by:
      insertObject in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      value - the value to be inserted
      t - transaction context
      See Also:
    • removeObject

      public void removeObject(Object o, int[] indices, Transaction t)
      Description copied from class: PersistenceField
      Removes an element from an array. This field has to be an array component indexed by indices. The value at the indexed component will be removed.
      Specified by:
      removeObject in class PersistenceField
      Parameters:
      o - the instance for which the field is modified
      indices - the indices for array fields
      t - transaction context
      See Also:
    • writeObject

      protected void writeObject(Object value, PersistenceOutput out) throws IOException
      Throws:
      IOException
    • readObject

      protected Object readObject(Object container, int index, PersistenceInput in) throws IOException
      Throws:
      IOException
    • toString

      public String toString()
      Overrides:
      toString in class MemberBase
    • getCloned

      public final Object getCloned(Object object) throws CloneNotSupportedException
      Throws:
      CloneNotSupportedException