Top Description Fields Constructors Methods
org.apache.pdfbox.pdmodel.common.function.type4

public Class InstructionSequence

extends Object
Class Inheritance
Imports
java.util.List, .Stack

Represents an instruction sequence, a combination of values, operands and nested procedures.

Field Summary

Modifier and TypeField and Description
private final List<Object>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
addBoolean(boolean
the value
value
)

Adds a bool value.

public void
addInteger(int
the value
value
)

Adds an int value.

public void
addName(String
the name
name
)

Add a name (ex.

public void
addProc(InstructionSequence
the child proc
child
)

Adds a proc (sub-sequence of instructions).

public void
addReal(float
the value
value
)

Adds a real value.

public void
execute(ExecutionContext
the execution context
context
)

Executes the instruction sequence.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

instructionsback to summary
private final List<Object> instructions

Constructor Detail

InstructionSequenceback to summary
public InstructionSequence()

Method Detail

addBooleanback to summary
public void addBoolean(boolean value)

Adds a bool value.

Parameters
value:boolean

the value

addIntegerback to summary
public void addInteger(int value)

Adds an int value.

Parameters
value:int

the value

addNameback to summary
public void addName(String name)

Add a name (ex. an operator)

Parameters
name:String

the name

addProcback to summary
public void addProc(InstructionSequence child)

Adds a proc (sub-sequence of instructions).

Parameters
child:InstructionSequence

the child proc

addRealback to summary
public void addReal(float value)

Adds a real value.

Parameters
value:float

the value

executeback to summary
public void execute(ExecutionContext context)

Executes the instruction sequence.

Parameters
context:ExecutionContext

the execution context