Package org.codehaus.janino
Class CodeContext.Offset
java.lang.Object
org.codehaus.janino.CodeContext.Offset
- Direct Known Subclasses:
CodeContext.BasicBlock,CodeContext.Inserter,CodeContext.LineNumberOffset
- Enclosing class:
CodeContext
A class that represents an offset within a "Code" attribute.
The concept of an "offset" is that if one writes into the middle of a "Code" attribute, all offsets behind the insertion point are automatically shifted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CodeContextorg.codehaus.janino.StackMapvoidset()Sets this "Offset" to the offset of the current inserter; inserts this "Offset" before the current inserter.voidSet this offset, and mark it as the the beginning of a "basic block".voidvoidsetStackMap(org.codehaus.janino.StackMap stackMap) toString()
-
Constructor Details
-
Offset
public Offset()
-
-
Method Details
-
set
public void set()Sets this "Offset" to the offset of the current inserter; inserts this "Offset" before the current inserter. -
setBasicBlock
public void setBasicBlock()Set this offset, and mark it as the the beginning of a "basic block". -
setOffset
public void setOffset() -
getStackMap
public org.codehaus.janino.StackMap getStackMap() -
setStackMap
public void setStackMap(org.codehaus.janino.StackMap stackMap) -
getCodeContext
- Returns:
- The
CodeContextthat thisCodeContext.Offsetbelongs to
-
toString
-