org.codehaus.janino
Class CodeContext.Offset

java.lang.Object
  extended by org.codehaus.janino.CodeContext.Offset
Direct Known Subclasses:
CodeContext.Inserter, CodeContext.LineNumberOffset
Enclosing class:
CodeContext

public class CodeContext.Offset
extends java.lang.Object

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
CodeContext.Offset()
           
 
Method Summary
 CodeContext getCodeContext()
           
 void set()
          Set this "Offset" to the offset of the current inserter; insert this "Offset" before the current inserter.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodeContext.Offset

public CodeContext.Offset()
Method Detail

set

public void set()
Set this "Offset" to the offset of the current inserter; insert this "Offset" before the current inserter.


getCodeContext

public final CodeContext getCodeContext()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001-2011. All Rights Reserved.