APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xalan.internal.xsltc.compiler.util

pack-priv abstract Class MarkerInstruction

extends Instruction
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xalan.internal.xsltc.compiler.util.OutlineableChunkEnd, com.sun.org.apache.xalan.internal.xsltc.compiler.util.OutlineableChunkStart
Imports
java.io.DataOutputStream, .IOException, com.sun.org.apache.bcel.internal.Const, com.sun.org.apache.bcel.internal.generic.ConstantPoolGen, .Instruction, .Visitor

A special abstract dummy subclass of org.apache.bcel.generic.Instruction used to mark locations of interest in an com.sun.org.apache.bcel.internal.generic.InstructionList. It and its subclasses are only used as placeholders, and do not contribute to the actual byte code instruction stream.

Field Summary

Inherited from com.sun.org.apache.bcel.internal.generic.Instruction:
lengthopcode

Constructor Summary

AccessConstructor and Description
public
MarkerInstruction()

Zero-argument constructor.

Method Summary

Modifier and TypeMethod and Description
public void
public final int
public Instruction

Returns:

The instruction itself.
copy
()

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.copy.

Produce a copy of the instruction.

public final void
dump(DataOutputStream
Output stream
out
)

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.dump.

Dump instruction as byte code to stream out.

public final int
Inherited from com.sun.org.apache.bcel.internal.generic.Instruction:
equalsgetComparatorgetLengthgetNamegetOpcodehashCodeinitFromFileisValidByteisValidShortreadInstructionsetComparatortoStringtoStringtoString

Constructor Detail

MarkerInstructionback to summary
public MarkerInstruction()

Zero-argument constructor. Sets the opcode to an invalid value and sets the length to zero, as it will not be written as part of the generated byte code.

Method Detail

acceptback to summary
public void accept(Visitor v)

Implements abstract com.sun.org.apache.bcel.internal.generic.Instruction.accept.

com.sun.org.apache.bcel.internal.generic.Visitors will know nothing about this kind of org.apche.bcel.generic.Instruction, so this method does nothing.

consumeStackback to summary
public final int consumeStack(ConstantPoolGen cpg)

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.consumeStack.

The number of JVM stack entries consumed by the instruction. This instruction is just a place holder, so it does not consume any stack entries.

Parameters
cpg:ConstantPoolGen

The com.sun.org.apache.bcel.internal.generic.ConstantPoolGen for the current com.sun.org.apache.bcel.internal.generic.ClassGen

Returns:int

0 always

copyback to summary
public Instruction copy()

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.copy.

Produce a copy of the instruction. By default a MarkerInstruction has no parameters, so the base implementation of copy() returns the instruction itself.

Returns:Instruction

The instruction itself.

dumpback to summary
public final void dump(DataOutputStream out) throws IOException

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.dump.

Dump instruction as byte code to stream out. A MarkerInstruction has no effect on the generated byte code so it is never emitted to the output stream.

Parameters
out:DataOutputStream

Output stream

Exceptions
IOException:

Doc from com.sun.org.apache.bcel.internal.generic.Instruction.dump.

Thrown when an I/O exception of some sort has occurred.

produceStackback to summary
public final int produceStack(ConstantPoolGen cpg)

Overrides com.sun.org.apache.bcel.internal.generic.Instruction.produceStack.

The number of JVM stack entries produced by the instruction. This instruction is just a place holder, so it does not produce any stack entries.

Parameters
cpg:ConstantPoolGen

The com.sun.org.apache.bcel.internal.generic.ConstantPoolGen for the current com.sun.org.apache.bcel.internal.generic.ClassGen

Returns:int

0 always