Module org.sejda.sambox
Class InstructionSequence
java.lang.Object
org.sejda.sambox.pdmodel.common.function.type4.InstructionSequence
Represents an instruction sequence, a combination of values, operands and nested procedures.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBoolean(boolean value) Adds a bool value.voidaddInteger(int value) Adds an int value.voidAdd a name (ex.voidaddProc(InstructionSequence child) Adds a proc (sub-sequence of instructions).voidaddReal(float value) Adds a real value.voidexecute(ExecutionContext context) Executes the instruction sequence.
-
Constructor Details
-
InstructionSequence
public InstructionSequence()
-
-
Method Details
-
addName
Add a name (ex. an operator)- Parameters:
name- the name
-
addInteger
public void addInteger(int value) Adds an int value.- Parameters:
value- the value
-
addReal
public void addReal(float value) Adds a real value.- Parameters:
value- the value
-
addBoolean
public void addBoolean(boolean value) Adds a bool value.- Parameters:
value- the value
-
addProc
Adds a proc (sub-sequence of instructions).- Parameters:
child- the child proc
-
execute
Executes the instruction sequence.- Parameters:
context- the execution context
-