Package org.codehaus.janino
Class CodeContext.Offset
- java.lang.Object
-
- org.codehaus.janino.CodeContext.Offset
-
- Direct Known Subclasses:
CodeContext.Inserter,CodeContext.LineNumberOffset
- Enclosing class:
- CodeContext
public class CodeContext.Offset extends java.lang.ObjectA 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 Constructor Description Offset()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeContextgetCodeContext()voidset()Sets this "Offset" to the offset of the current inserter; inserts this "Offset" before the current inserter.java.lang.StringtoString()
-
-
-
Method Detail
-
set
public void set()
Sets this "Offset" to the offset of the current inserter; inserts this "Offset" before the current inserter.
-
getCodeContext
public final CodeContext getCodeContext()
- Returns:
- The
CodeContextthat thisCodeContext.Offsetbelongs to
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-