Class AbstractCall
- java.lang.Object
-
- ru.ispras.microtesk.utils.SharedObject<AbstractCall>
-
- ru.ispras.microtesk.test.template.AbstractCall
-
public final class AbstractCall extends SharedObject<AbstractCall>
-
-
Constructor Summary
Constructors Constructor Description AbstractCall(AbstractCall other)
AbstractCall(Where where, java.lang.String text, Primitive rootOperation, java.util.List<Directive> directives, java.util.List<LabelReference> labelRefs, java.util.List<Output> outputs, PreparatorReference preparatorReference, DataSection data, java.util.List<AbstractCall> atomicSequence, AllocatorAction allocatorAction)
-
Method Summary
-
Methods inherited from class ru.ispras.microtesk.utils.SharedObject
copyAll, freeSharedCopies, getCopy, publishSharedCopy, sharedCopy, sharedCopyAll
-
-
-
-
Constructor Detail
-
AbstractCall
public AbstractCall(Where where, java.lang.String text, Primitive rootOperation, java.util.List<Directive> directives, java.util.List<LabelReference> labelRefs, java.util.List<Output> outputs, PreparatorReference preparatorReference, DataSection data, java.util.List<AbstractCall> atomicSequence, AllocatorAction allocatorAction)
-
AbstractCall
public AbstractCall(AbstractCall other)
-
-
Method Detail
-
newData
public static AbstractCall newData(DataSection data)
-
newText
public static AbstractCall newText(java.lang.String text)
-
newEmpty
public static AbstractCall newEmpty()
-
newLine
public static AbstractCall newLine()
-
newComment
public static AbstractCall newComment(java.lang.String comment)
-
newAtomicSequence
public static AbstractCall newAtomicSequence(java.util.List<AbstractCall> sequence)
-
expandAtomic
public static java.util.List<AbstractCall> expandAtomic(java.util.List<AbstractCall> sequence)
-
newAllocatorAction
public static AbstractCall newAllocatorAction(AllocatorAction allocatorAction)
-
isExecutable
public boolean isExecutable()
-
isPreparatorCall
public boolean isPreparatorCall()
-
isEmpty
public boolean isEmpty()
-
getWhere
public Where getWhere()
-
getText
public java.lang.String getText()
-
getRootOperation
public Primitive getRootOperation()
-
getAttributes
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
-
getCommands
public java.util.List<Primitive> getCommands()
-
getDirectives
public java.util.List<Directive> getDirectives()
-
getLabels
public java.util.List<Label> getLabels()
-
getLabelReferences
public java.util.List<LabelReference> getLabelReferences()
-
getOutputs
public java.util.List<Output> getOutputs()
-
getTargetReference
public LabelReference getTargetReference()
-
getPreparatorReference
public PreparatorReference getPreparatorReference()
-
hasData
public boolean hasData()
-
getData
public DataSection getData()
-
isAtomicSequence
public boolean isAtomicSequence()
-
getAtomicSequence
public java.util.List<AbstractCall> getAtomicSequence()
-
isAllocatorAction
public boolean isAllocatorAction()
-
getAllocatorAction
public AllocatorAction getAllocatorAction()
-
getBlockConstraints
public java.util.Map<java.lang.String,Situation> getBlockConstraints()
-
addBlockConstraints
public void addBlockConstraints(java.util.Map<java.lang.String,Situation> blockConstraints)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
newCopy
public AbstractCall newCopy()
Description copied from class:SharedObject
Creates a new full copy of the object. This method must call theSharedObject(SharedObject)
copy constructor in order to publish a shared copy.- Specified by:
newCopy
in classSharedObject<AbstractCall>
- Returns:
- New full copy of the object.
-
-