Interface Field

All Superinterfaces:
org.eclipse.emf.ecore.EObject, Feature, NamedElement, org.eclipse.emf.common.notify.Notifier, TypedElement
All Known Implementing Classes:
FieldImpl

public interface Field extends Feature
A representation of the model object 'Field'.
See Also:
  • Method Details

    • getStaticValue

      Object getStaticValue()
      Returns the value of the 'Static Value' attribute.

      If the meaning of the 'Static Value' attribute isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Static Value' attribute.
      See Also:
    • setStaticValue

      void setStaticValue(Object value)
      Sets the value of the 'Static Value' attribute.
      Parameters:
      value - the new value of the 'Static Value' attribute.
      See Also:
    • getInitialiser

      CodeBlock getInitialiser()
      Returns the value of the 'Initialiser' containment reference. It is bidirectional and its opposite is 'Initialiser For'.

      If the meaning of the 'Initialiser' reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Initialiser' containment reference.
      See Also:
    • setInitialiser

      void setInitialiser(CodeBlock value)
      Sets the value of the 'Initialiser' containment reference.
      Parameters:
      value - the new value of the 'Initialiser' containment reference.
      See Also:
    • getRule

      Rule getRule()
      Returns the value of the 'Rule' container reference. It is bidirectional and its opposite is 'Fields'.

      If the meaning of the 'Rule' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Rule' container reference.
      See Also:
    • setRule

      void setRule(Rule value)
      Sets the value of the 'Rule' container reference.
      Parameters:
      value - the new value of the 'Rule' container reference.
      See Also:
    • getValue

      Object getValue(Object context)
      Returns the value of this Field for the given context object.
      Parameters:
      context - the context object
      Returns:
      the value of this Field for the given context object.
    • setValue

      void setValue(Object context, Object value)
      Sets the value of this Field for the given context object.
      Parameters:
      context - the context object
      value - the field value to set
    • getValue

      Object getValue(Object context, StackFrame frame)
      Returns the value of this Field for the given context object. Evaluates the initial value using frame if necessary.
      Parameters:
      context - the context object
      frame - the StackFrame in which to execute the initial value evaluator
      Returns:
      the value of this Field for the given context object.
    • getStaticValue

      Object getStaticValue(StackFrame frame)
      Returns the static value of this Field. Evaluates the initial value using frame if necessary.
      Parameters:
      frame - the StackFrame in which to execute the initial value evaluator
      Returns:
      the static value of this Field.
    • clear

      void clear()
      Clears all values of this Field.
    • addValue

      void addValue(Object context, Object value, int index, StackFrame frame)
      Adds a value to this Field for the given context object.
      Parameters:
      context - the context object
      value - the field value to add
      index - the index to add the value at, or -1
      frame - the StackFrame in which to execute the initial value evaluator
    • removeValue

      void removeValue(Object context, Object value, StackFrame frame)
      Removes a value from this Field for the given context object.
      Parameters:
      context - the context object
      value - the field value to remove
      frame - the StackFrame in which to execute the initial value evaluator