Object-oriented Parser System
v3.6

gl
Class Gl.Tree

Object
  extended by Gl.Tree
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Tree
Enclosing class:
Gl

public static class Gl.Tree
extends Object
implements Serializable

tree factory

See Also:
Serialized Form

Nested Class Summary
static class Gl.Tree.Add
          tree node class.
static class Gl.Tree.AndIf
          tree node class.
static class Gl.Tree.Assign
          tree node class.
static class Gl.Tree.Deref
          tree node class.
static class Gl.Tree.Div
          tree node class.
static class Gl.Tree.Eq
          tree node class.
static class Gl.Tree.Ge
          tree node class.
static class Gl.Tree.Gt
          tree node class.
static class Gl.Tree.Guard
          tree node class.
static class Gl.Tree.Le
          tree node class.
static class Gl.Tree.Lit
          tree node class.
static class Gl.Tree.Loop
          tree node class.
static class Gl.Tree.Lt
          tree node class.
static class Gl.Tree.Mul
          tree node class.
static class Gl.Tree.Ne
          tree node class.
static class Gl.Tree.OrIf
          tree node class.
static class Gl.Tree.Print
          tree node class.
static class Gl.Tree.Rem
          tree node class.
static class Gl.Tree.Select
          tree node class.
static class Gl.Tree.Stmt
          tree node class.
static class Gl.Tree.Sub
          tree node class.
static class Gl.Tree.Var
          tree node class.
static interface Gl.Tree.Visit
          what each tree class will do.
static interface Gl.Tree.Visitor
          what a visitor must do: receive each tree class separately.
static class Gl.Tree.With
          tree node class.
 
Constructor Summary
Gl.Tree()
           
 
Method Summary
 Gl.Tree.Add add(int position, List args)
          factory method.
protected static Object[] add(Object[] o, int i)
          (inefficient) implementation of mutable lists.
 Gl.Tree.AndIf andif(int position, List args)
          factory method.
 Gl.Tree.Assign assign(int position, List args)
          factory method.
 Gl.Tree.Deref deref(int position, List args)
          factory method.
 Gl.Tree.Div div(int position, List args)
          factory method.
 Gl.Tree.Eq eq(int position, List args)
          factory method.
 Gl.Tree.Ge ge(int position, List args)
          factory method.
 Gl.Tree.Gt gt(int position, List args)
          factory method.
 Gl.Tree.Guard guard(int position, List args)
          factory method.
 Gl.Tree.Le le(int position, List args)
          factory method.
 Gl.Tree.Loop loop(int position, List args)
          factory method.
 Gl.Tree.Lt lt(int position, List args)
          factory method.
 Gl.Tree.Mul mul(int position, List args)
          factory method.
 Gl.Tree.Ne ne(int position, List args)
          factory method.
 Gl.Tree.Lit number(int position, List args)
          factory method.
 Gl.Tree.OrIf orif(int position, List args)
          factory method.
 Gl.Tree.Print print(int position, List args)
          factory method.
 Gl.Tree.Rem rem(int position, List args)
          factory method.
protected static Object[] remove(Object[] o, int i)
          (inefficient) implementation of mutable lists.
 Gl.Tree.Select select(int position, List args)
          factory method.
 Object stmt(int position, List args)
          factory method: pass single descendant through.
 Gl.Tree.Sub sub(int position, List args)
          factory method.
 Gl.Tree.Var var(int position, List args)
          factory method.
 Gl.Tree.With with(int position, List args)
          factory method.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gl.Tree

public Gl.Tree()
Method Detail

add

protected static Object[] add(Object[] o,
                              int i)
(inefficient) implementation of mutable lists.

Returns:
copy of o with an empty slot at i.

remove

protected static Object[] remove(Object[] o,
                                 int i)
(inefficient) implementation of mutable lists.

Returns:
copy of o with slot at i removed.

select

public Gl.Tree.Select select(int position,
                             List args)
factory method.


loop

public Gl.Tree.Loop loop(int position,
                         List args)
factory method.


print

public Gl.Tree.Print print(int position,
                           List args)
factory method.


with

public Gl.Tree.With with(int position,
                         List args)
factory method.


stmt

public Object stmt(int position,
                   List args)
factory method: pass single descendant through.


guard

public Gl.Tree.Guard guard(int position,
                           List args)
factory method.


var

public Gl.Tree.Var var(int position,
                       List args)
factory method.


orif

public Gl.Tree.OrIf orif(int position,
                         List args)
factory method.


andif

public Gl.Tree.AndIf andif(int position,
                           List args)
factory method.


eq

public Gl.Tree.Eq eq(int position,
                     List args)
factory method.


ne

public Gl.Tree.Ne ne(int position,
                     List args)
factory method.


lt

public Gl.Tree.Lt lt(int position,
                     List args)
factory method.


le

public Gl.Tree.Le le(int position,
                     List args)
factory method.


gt

public Gl.Tree.Gt gt(int position,
                     List args)
factory method.


ge

public Gl.Tree.Ge ge(int position,
                     List args)
factory method.


add

public Gl.Tree.Add add(int position,
                       List args)
factory method.


sub

public Gl.Tree.Sub sub(int position,
                       List args)
factory method.


mul

public Gl.Tree.Mul mul(int position,
                       List args)
factory method.


div

public Gl.Tree.Div div(int position,
                       List args)
factory method.


rem

public Gl.Tree.Rem rem(int position,
                       List args)
factory method.


number

public Gl.Tree.Lit number(int position,
                          List args)
factory method.


deref

public Gl.Tree.Deref deref(int position,
                           List args)
factory method.


assign

public Gl.Tree.Assign assign(int position,
                             List args)
factory method.



(c) 2008 Axel T. Schreiner