Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

nice.lang.inline
Class BoolNotOp  view BoolNotOp download BoolNotOp.java

java.lang.Object
  extended bygnu.mapping.Procedure
      extended bygnu.mapping.Procedure1
          extended bynice.lang.inline.BoolNotOp
All Implemented Interfaces:
gnu.expr.Branchable, gnu.expr.Inlineable, gnu.mapping.Named

public class BoolNotOp
extends gnu.mapping.Procedure1
implements gnu.expr.Inlineable, gnu.expr.Branchable

Inlining of native unary boolean operators.


Field Summary
static BoolNotOp instance
           
private static gnu.bytecode.Type retType
           
 
Fields inherited from class gnu.mapping.Procedure
 
Constructor Summary
private BoolNotOp()
           
 
Method Summary
 java.lang.Object apply1(java.lang.Object arg)
           
 void compile(gnu.expr.ApplyExp exp, gnu.expr.Compilation comp, gnu.expr.Target target)
           
 void compileJump(gnu.expr.Compilation comp, gnu.expr.Expression[] args, gnu.bytecode.Label to)
          Jump to label if the expression yields true.
 void compileJumpNot(gnu.expr.Compilation comp, gnu.expr.Expression[] args, gnu.bytecode.Label to)
          Jump to label if the expression yields false.
static BoolNotOp create(java.lang.String param)
           
 gnu.bytecode.Type getReturnType(gnu.expr.Expression[] args)
           
 
Methods inherited from class gnu.mapping.Procedure1
apply0, apply2, apply3, apply4, applyN, numArgs
 
Methods inherited from class gnu.mapping.Procedure
apply, checkArgCount, getName, getProperty, getSetter, maxArgs, minArgs, name, removeProperty, set0, set1, setN, setName, setProperty, setProperty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

instance

public static final BoolNotOp instance

retType

private static final gnu.bytecode.Type retType
Constructor Detail

BoolNotOp

private BoolNotOp()
Method Detail

create

public static BoolNotOp create(java.lang.String param)

compile

public void compile(gnu.expr.ApplyExp exp,
                    gnu.expr.Compilation comp,
                    gnu.expr.Target target)
Specified by:
compile in interface gnu.expr.Inlineable

compileJump

public void compileJump(gnu.expr.Compilation comp,
                        gnu.expr.Expression[] args,
                        gnu.bytecode.Label to)
Description copied from interface: gnu.expr.Branchable
Jump to label if the expression yields true.

Specified by:
compileJump in interface gnu.expr.Branchable

compileJumpNot

public void compileJumpNot(gnu.expr.Compilation comp,
                           gnu.expr.Expression[] args,
                           gnu.bytecode.Label to)
Description copied from interface: gnu.expr.Branchable
Jump to label if the expression yields false.

Specified by:
compileJumpNot in interface gnu.expr.Branchable

getReturnType

public gnu.bytecode.Type getReturnType(gnu.expr.Expression[] args)
Specified by:
getReturnType in interface gnu.expr.Inlineable

apply1

public java.lang.Object apply1(java.lang.Object arg)