Class MixsetFragment

java.lang.Object
cruise.umple.compiler.MixsetFragment

public class MixsetFragment
extends java.lang.Object
Each mixset statement creates a MixSetFragment
  • Constructor Summary

    Constructors 
    Constructor Description
    MixsetFragment​(UmpleFile aOriginalUmpFile, int aOriginalUmpLine, java.lang.String aBody)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    java.lang.String getBody()
    This is the text of the fragment Note that it might be prefixed contextually thus: if top level, the body is whatever is found in the curly brackets if class X mixset Y {}, then wrapped in class X { } if class X { mixset Y {...}} then wrapped in class X { } if class X { mixset Y a; then just there are no curly brackets, and a is wrapped in class X {}
    FragmentFeatureLeaf getFragmentFeatureLeaf()  
    boolean getIsParsed()
    by default a fragment is not parsed, then this will be changed after parsing.
    Mixset getMixset()  
    UmpleFile getOriginalUmpFile()
    The following attributes are used when generating the virtual file for parsing, so any bugs can point back to the original file where the fragment came from
    int getOriginalUmpLine()
    line in originaUmpFile
    boolean hasFragmentFeatureLeaf()  
    boolean hasMixset()  
    boolean setBody​(java.lang.String aBody)  
    boolean setFragmentFeatureLeaf​(FragmentFeatureLeaf aFragmentFeatureLeaf)  
    boolean setIsParsed​(boolean aIsParsed)  
    boolean setMixset​(Mixset aMixset)  
    boolean setOriginalUmpFile​(UmpleFile aOriginalUmpFile)  
    boolean setOriginalUmpLine​(int aOriginalUmpLine)  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MixsetFragment

      public MixsetFragment​(UmpleFile aOriginalUmpFile, int aOriginalUmpLine, java.lang.String aBody)
  • Method Details

    • setOriginalUmpFile

      public boolean setOriginalUmpFile​(UmpleFile aOriginalUmpFile)
    • setOriginalUmpLine

      public boolean setOriginalUmpLine​(int aOriginalUmpLine)
    • setIsParsed

      public boolean setIsParsed​(boolean aIsParsed)
    • setBody

      public boolean setBody​(java.lang.String aBody)
    • getOriginalUmpFile

      public UmpleFile getOriginalUmpFile()
      The following attributes are used when generating the virtual file for parsing, so any bugs can point back to the original file where the fragment came from
    • getOriginalUmpLine

      public int getOriginalUmpLine()
      line in originaUmpFile
    • getIsParsed

      public boolean getIsParsed()
      by default a fragment is not parsed, then this will be changed after parsing.
    • getBody

      public java.lang.String getBody()
      This is the text of the fragment Note that it might be prefixed contextually thus: if top level, the body is whatever is found in the curly brackets if class X mixset Y {}, then wrapped in class X { } if class X { mixset Y {...}} then wrapped in class X { } if class X { mixset Y a; then just there are no curly brackets, and a is wrapped in class X {}
    • getMixset

      public Mixset getMixset()
    • hasMixset

      public boolean hasMixset()
    • getFragmentFeatureLeaf

      public FragmentFeatureLeaf getFragmentFeatureLeaf()
    • hasFragmentFeatureLeaf

      public boolean hasFragmentFeatureLeaf()
    • setMixset

      public boolean setMixset​(Mixset aMixset)
    • setFragmentFeatureLeaf

      public boolean setFragmentFeatureLeaf​(FragmentFeatureLeaf aFragmentFeatureLeaf)
    • delete

      public void delete()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object