|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.xsltc.compiler.util.MethodGenerator.Chunk
private static class MethodGenerator.Chunk
Used to keep track of an outlineable chunk of instructions in the
current method. See OutlineableChunkStart
and
OutlineableChunkEnd
for more information.
Field Summary | |
---|---|
private InstructionHandle |
m_end
org.apache.bcel.generic.InstructionHandle of the first
instruction in the outlineable chunk. |
private int |
m_size
Number of bytes in the instructions contained in this outlineable chunk. |
private InstructionHandle |
m_start
InstructionHandle of the first instruction in the outlineable
chunk. |
Constructor Summary | |
---|---|
MethodGenerator.Chunk(InstructionHandle start,
InstructionHandle end)
Constructor for an outlineable MethodGenerator.Chunk . |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object comparand)
Implements the java.util.Comparable.compareTo(Object)
method. |
(package private) InstructionHandle |
getChunkEnd()
Getter method for the end of this MethodGenerator.Chunk |
(package private) int |
getChunkSize()
The size of this MethodGenerator.Chunk |
(package private) InstructionHandle |
getChunkStart()
Getter method for the start of this |
(package private) boolean |
isAdjacentTo(MethodGenerator.Chunk neighbour)
Determines whether this outlineable MethodGenerator.Chunk is
followed immediately by the argument
MethodGenerator.Chunk , with no other intervening
instructions, including OutlineableChunkStart or
OutlineableChunkEnd instructions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private InstructionHandle m_start
InstructionHandle
of the first instruction in the outlineable
chunk.
private InstructionHandle m_end
org.apache.bcel.generic.InstructionHandle
of the first
instruction in the outlineable chunk.
private int m_size
Constructor Detail |
---|
MethodGenerator.Chunk(InstructionHandle start, InstructionHandle end)
Constructor for an outlineable MethodGenerator.Chunk
.
Preconditions:
InstructionList#setPositions()
has been called for
the InstructionList
associated with this
MethodGenerator
.
start
- The InstructionHandle
of the first
instruction in the outlineable chunk.end
- The InstructionHandle
of the last
instruction in the outlineable chunk.Method Detail |
---|
boolean isAdjacentTo(MethodGenerator.Chunk neighbour)
MethodGenerator.Chunk
is
followed immediately by the argument
MethodGenerator.Chunk
, with no other intervening
instructions, including OutlineableChunkStart
or
OutlineableChunkEnd
instructions.
neighbour
- an outlineable MethodGenerator.Chunk
true
if and only if the argument chunk
immediately follows this
chunkInstructionHandle getChunkStart()
org.apache.bcel.generic.InstructionHandle
of the
start of this chunkInstructionHandle getChunkEnd()
MethodGenerator.Chunk
InstructionHandle
of the start of this chunkint getChunkSize()
MethodGenerator.Chunk
public int compareTo(java.lang.Object comparand)
java.util.Comparable.compareTo(Object)
method.
compareTo
in interface java.lang.Comparable
int
if the length of this
chunk in bytes is greater than that of comparand
int
if the length of this
chunk in bytes is less than that of comparand
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |