Uses of Interface
components.sequence.Sequence
Package
Description
Provides the
Program
family interfaces and implementing classes.Provides the
Sequence
family interfaces and implementing classes.Provides the
Tree
family interfaces and implementing classes.-
Uses of Sequence in components.program
Modifier and TypeMethodDescriptionProgram.generatedCode()
Generates and returns the sequence of virtual machine instructions ( "byte codes") corresponding tothis
.ProgramSecondary.generatedCode()
Modifier and TypeMethodDescriptionstatic void
Program1.disassembleProgram
(SimpleWriter out, Sequence<Integer> cp) Disassembles and outputs toout
the given programcp
. -
Uses of Sequence in components.sequence
Modifier and TypeClassDescriptionclass
Sequence1L<T>
Sequence
represented as ajava.util.ArrayList
with implementations of primary methods.class
Sequence2L<T>
Sequence
represented as ajava.util.LinkedList
with implementations of primary methods.class
Sequence3<T>
Sequence
represented as a pair ofStack
s with implementations of primary methods.class
Layered implementations of secondary methods forSequence
.Modifier and TypeMethodDescriptionSequence1L.newInstance()
Sequence2L.newInstance()
Sequence3.newInstance()
Modifier and TypeMethodDescriptionvoid
Concatenates ("appends")s
to the end ofthis
.void
void
Removes the substring ofthis
starting at positionpos1
and ending at positionpos2-1
and puts in its
.void
void
Insertss
intothis
at positionpos
, i.e., after thepos
-th entry ofthis
; and clearss
.void
final void
Sequence1L.transferFrom
(Sequence<T> source) final void
Sequence2L.transferFrom
(Sequence<T> source) final void
Sequence3.transferFrom
(Sequence<T> source) -
Uses of Sequence in components.tree
Modifier and TypeMethodDescriptionTree1.newSequenceOfTree()
TreeKernel.newSequenceOfTree()
Creates and returns an emptySequence<Tree<T>>
of the dynamic type needed inassemble
anddisassemble
.Modifier and TypeMethodDescriptionfinal void
void
Assembles inthis
a tree with root labelroot
and subtreeschildren
; the declaration notwithstanding, the dynamic type of each entry ofchildren
must be the same as the dynamic type ofthis
and the dynamic type ofchildren
must be the same as that returned bynewSequenceOfTree
.final T
Tree1.disassemble
(Sequence<Tree<T>> children) TreeKernel.disassemble
(Sequence<Tree<T>> children) Disassemblesthis
into its root label, which is returned as the value of the function, and subtrees inchildren
; the declaration notwithstanding, the dynamic type ofchildren
must be the same as that returned bynewSequenceOfTree
.