org.apache.derby.impl.services.bytecode
Class Conditional

java.lang.Object
  extended byorg.apache.derby.impl.services.bytecode.Conditional

class Conditional
extends java.lang.Object

A code chunk that gets pushed to handle if-else blocks. When this is created the mainChunk will already have the conditional check code. if condition then code else code what actually gets built is if !condition goto eb: then code goto end: eb: else code end:


Field Summary
private  int clearTo
           
private  int ifOffset
           
private  Conditional parent
           
private  int thenGotoOffset
           
 
Constructor Summary
(package private) Conditional(Conditional parent, CodeChunk chunk, short ifOpcode, int clearTo)
           
 
Method Summary
(package private)  Conditional end(CodeChunk chunk, int elseSize)
           
private  void fillIn(CodeChunk chunk, int where)
           
(package private)  int startElse(CodeChunk chunk, int thenSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parent

private final Conditional parent

ifOffset

private final int ifOffset

clearTo

private int clearTo

thenGotoOffset

private int thenGotoOffset
Constructor Detail

Conditional

Conditional(Conditional parent,
            CodeChunk chunk,
            short ifOpcode,
            int clearTo)
Method Detail

startElse

int startElse(CodeChunk chunk,
              int thenSize)

end

Conditional end(CodeChunk chunk,
                int elseSize)

fillIn

private void fillIn(CodeChunk chunk,
                    int where)

Built on Mon 2007-06-04 09:58:47+0400, from revision ???

Apache Derby V10.1 Engine Documentation - Copyright © 1997,2005 The Apache Software Foundation or its licensors, as applicable.