Package cruise.umple.compiler
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 fromint
getOriginalUmpLine()
line in originaUmpFileboolean
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()
-
Constructor Details
-
Method Details
-
setOriginalUmpFile
-
setOriginalUmpLine
public boolean setOriginalUmpLine(int aOriginalUmpLine) -
setIsParsed
public boolean setIsParsed(boolean aIsParsed) -
setBody
public boolean setBody(java.lang.String aBody) -
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
-
hasMixset
public boolean hasMixset() -
getFragmentFeatureLeaf
-
hasFragmentFeatureLeaf
public boolean hasFragmentFeatureLeaf() -
setMixset
-
setFragmentFeatureLeaf
-
delete
public void delete() -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-