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<Label> labels, java.util.List<LabelReference> labelRefs, java.util.List<Output> outputs, boolean relativeOrigin, java.math.BigInteger origin, java.math.BigInteger alignment, java.math.BigInteger alignmentInBytes, PreparatorReference preparatorReference, DataSection data, java.util.List<AbstractCall> atomicSequence, AllocatorAction allocatorAction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBlockConstraints(java.util.Map<java.lang.String,Situation> blockConstraints)
static java.util.List<AbstractCall>
expandAtomic(java.util.List<AbstractCall> sequence)
java.math.BigInteger
getAlignment()
java.math.BigInteger
getAlignmentInBytes()
AllocatorAction
getAllocatorAction()
java.util.List<AbstractCall>
getAtomicSequence()
java.util.Map<java.lang.String,java.lang.Object>
getAttributes()
java.util.Map<java.lang.String,Situation>
getBlockConstraints()
java.util.List<Primitive>
getCommands()
DataSection
getData()
java.util.List<LabelReference>
getLabelReferences()
java.util.List<Label>
getLabels()
java.math.BigInteger
getOrigin()
java.util.List<Output>
getOutputs()
PreparatorReference
getPreparatorReference()
Primitive
getRootOperation()
LabelReference
getTargetReference()
java.lang.String
getText()
Where
getWhere()
boolean
hasData()
boolean
isAllocatorAction()
boolean
isAtomicSequence()
boolean
isEmpty()
boolean
isExecutable()
boolean
isPreparatorCall()
boolean
isRelativeOrigin()
static AbstractCall
newAllocatorAction(AllocatorAction allocatorAction)
static AbstractCall
newAtomicSequence(java.util.List<AbstractCall> sequence)
static AbstractCall
newComment(java.lang.String comment)
AbstractCall
newCopy()
Creates a new full copy of the object.static AbstractCall
newData(DataSection data)
static AbstractCall
newEmpty()
static AbstractCall
newLine()
static AbstractCall
newOrigin(java.math.BigInteger origin, boolean isRelative)
static AbstractCall
newText(java.lang.String text)
java.lang.String
toString()
-
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<Label> labels, java.util.List<LabelReference> labelRefs, java.util.List<Output> outputs, boolean relativeOrigin, java.math.BigInteger origin, java.math.BigInteger alignment, java.math.BigInteger alignmentInBytes, 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)
-
newOrigin
public static AbstractCall newOrigin(java.math.BigInteger origin, boolean isRelative)
-
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()
-
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()
-
isRelativeOrigin
public boolean isRelativeOrigin()
-
getOrigin
public java.math.BigInteger getOrigin()
-
getAlignment
public java.math.BigInteger getAlignment()
-
getAlignmentInBytes
public java.math.BigInteger getAlignmentInBytes()
-
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.
-
-