Uses of Class
com.svincent.smalljava.Expr

Packages that use Expr
com.svincent.smalljava Provides an API for generating Java source code and JVM bytecodes. 
 

Uses of Expr in com.svincent.smalljava
 

Subclasses of Expr in com.svincent.smalljava
static class Expr.Begin
          Execute a series of expressions, one after another.
private static class com.svincent.smalljava.Expr.BinaryExpr
          An expression with two halves.
static class Expr.BooleanConst
          Return the given boolean constant.
static class Expr.Call
          Call a method.
static class Expr.Comment
          A comment.
private static class com.svincent.smalljava.Expr.CompareExpr
          Binary operators which evaluate to 'true' or 'false'.
static class Expr.DoubleConst
          Return the given double constant.
static class Expr.EQ
          The normal == binary operator.
static class Expr.GE
          The normal >= binary operator.
static class Expr.GetField
          Get the value from an instance field
static class Expr.GetLocal
          Get the value from a local variable
static class Expr.GetStatic
          Get the value from a static field
static class Expr.GT
          The normal > binary operator.
static class Expr.If
          If condition evaluates to true, evaluate the then clase.
static class Expr.IntConst
          Return the given integer constant.
static class Expr.LE
          The normal <= binary operator.
static class Expr.LT
          The normal < binary operator.
static class Expr.Minus
          The normal - binary operator.
static class Expr.NE
          The normal != binary operator.
static class Expr.New
          Construct a new instance of the named class.
static class Expr.NewArray
          Construct a new array instance for containing the given type (Only makes single-dimensional arrays, for now) Also ignores types of initializer things.
static class Expr.NullConst
          Return the null constant..
static class Expr.Plus
          The normal + binary operator.
static class Expr.Return
          Return a value from a method.
static class Expr.SetArray
          Assign a value to an array slot
static class Expr.SetField
          Assign a value to an instance field
static class Expr.SetLocal
          Assign a value to a local variable
static class Expr.StringConst
          Return the given String constant.
static class Expr.SuperConstructor
          call the null-arg super constructor..
static class Expr.This
          Access the magic variable 'this'.
static class Expr.While
          Loop around, executing instructions until the given condition evaluates to 'true'.
 

Fields in com.svincent.smalljava declared as Expr
static Expr[] Expr.EmptyArray
          A convenient empty Expression array.
 

Methods in com.svincent.smalljava that return Expr
static Expr SmallMacro.forLoop(SmallMethod method, java.lang.String varName, int start, int end, Expr body)
          Builds a for loop.
static Expr SmallMacro.println()
          Calls Util.out.println ();
static Expr SmallMacro.println(java.lang.String msg)
          Calls Util.out.println ("msg");
static Expr SmallMacro.printField(java.lang.String className, java.lang.String descriptor, java.lang.String fieldName)
          Calls Util.out.print, printing the given field reference.
static Expr SmallMacro.printLocal(SmallMethod method, java.lang.String fieldName)
          Calls Util.out.print, printing the given local field reference.
 

Methods in com.svincent.smalljava with parameters of type Expr
 SmallMethod SmallMethod.add(Expr expr)
          Add a new expression to this method, and returns, for your convenience, the SmallMethod again, so a convenient and wonderful method.add ().add ()...
 void SmallMethod.local(java.lang.String descriptor, java.lang.String name, Expr initializer)
          Add a new local variable to this method, with the given type descriptor and initializer.
 void SmallMethod.local(SmallType type, java.lang.String name, Expr initializer)
          Add a new local variable to this method, with the given type and initializer.
 void SmallMethod.addLocal(SmallMethod.Local l, Expr initializer)
          Adds a new local variable to this method.
static Expr SmallMacro.forLoop(SmallMethod method, java.lang.String varName, int start, int end, Expr body)
          Builds a for loop.
 Expr.Begin Expr.Begin.add(Expr e)
           
 void Expr.While.setBody(Expr _body)
           
 void Expr.If.setThen(Expr _thenClause)
           
 void Expr.If.setElse(Expr _elseClause)
           
 

Constructors in com.svincent.smalljava with parameters of type Expr
Expr.New.Expr.New(java.lang.String _className, java.lang.String _descriptor, Expr[] _args)
           
Expr.NewArray.Expr.NewArray(SmallType _arrayType, Expr _size)
          Makes a new array like: new Type[size]
Expr.NewArray.Expr.NewArray(SmallType _arrayType, Expr[] _initializer)
          Makes a new array like: new Type[] {initializer}
Expr.Return.Expr.Return(Expr _returnExpr)
          For non-void returns.
Expr.Call.Expr.Call(java.lang.String _className, java.lang.String _signature, Expr[] _args)
           
Expr.Call.Expr.Call(Expr _self, java.lang.String _className, java.lang.String _signature, Expr[] _args)
           
Expr.SetField.Expr.SetField(java.lang.String _className, java.lang.String _descriptor, java.lang.String _fieldName, Expr _rvalue)
           
Expr.SetField.Expr.SetField(Expr _self, java.lang.String _className, java.lang.String _descriptor, java.lang.String _fieldName, Expr _rvalue)
           
Expr.SetLocal.Expr.SetLocal(java.lang.String _fieldName, Expr _rvalue)
           
Expr.SetArray.Expr.SetArray(Expr _array, Expr _idx, Expr _newValue)
           
Expr.GetField.Expr.GetField(Expr _self, java.lang.String _className, java.lang.String _descriptor, java.lang.String _fieldName)
           
Expr.While.Expr.While(Expr _cond)
           
Expr.While.Expr.While(Expr _cond, Expr _body)
           
Expr.If.Expr.If(Expr _cond)
           
Expr.If.Expr.If(Expr _cond, Expr _thenClause)
           
Expr.If.Expr.If(Expr _cond, Expr _thenClause, Expr _elseClause)
           
Expr.Plus.Expr.Plus(Expr _l, Expr _r)
           
Expr.Minus.Expr.Minus(Expr _l, Expr _r)
           
Expr.EQ.Expr.EQ(Expr _l, Expr _r)
           
Expr.NE.Expr.NE(Expr _l, Expr _r)
           
Expr.GT.Expr.GT(Expr _l, Expr _r)
           
Expr.GE.Expr.GE(Expr _l, Expr _r)
           
Expr.LT.Expr.LT(Expr _l, Expr _r)
           
Expr.LE.Expr.LE(Expr _l, Expr _r)
           
 




This is documentation for Moksa Prolog, which can be found at http://www.svincent.com/moksa/

Copyright © 1999 Shawn P. Vincent.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.