polyglot.ext.coffer.ast
Class CofferNodeFactory_c

java.lang.Object
  extended by polyglot.ext.jl.ast.AbstractNodeFactory_c
      extended by polyglot.ext.jl.ast.NodeFactory_c
          extended by polyglot.ext.coffer.ast.CofferNodeFactory_c
All Implemented Interfaces:
NodeFactory, CofferNodeFactory

public class CofferNodeFactory_c
extends NodeFactory_c
implements CofferNodeFactory

An implementation of the CofferNodeFactory interface.


Constructor Summary
  CofferNodeFactory_c()
           
protected CofferNodeFactory_c(ExtFactory extFact)
           
 
Method Summary
 AmbKeySetNode AmbKeySetNode(Position pos, java.util.List keys)
           
 Assign Assign(Position pos, Expr left, Assign.Operator op, Expr right)
           
 CanonicalKeySetNode CanonicalKeySetNode(Position pos, KeySet keys)
           
 ClassDecl ClassDecl(Position pos, Flags flags, java.lang.String name, TypeNode superClass, java.util.List interfaces, ClassBody body)
           
 CofferClassDecl CofferClassDecl(Position pos, Flags flags, java.lang.String name, KeyNode key, TypeNode superClass, java.util.List interfaces, ClassBody body)
           
 CofferConstructorDecl CofferConstructorDecl(Position pos, Flags flags, java.lang.String name, java.util.List argTypes, KeySetNode entryKeys, KeySetNode returnKeys, java.util.List throwConstraints, Block body)
           
 CofferMethodDecl CofferMethodDecl(Position pos, Flags flags, TypeNode returnType, java.lang.String name, java.util.List argTypes, KeySetNode entryKeys, KeySetNode returnKeys, java.util.List throwConstraints, Block body)
           
 ConstructorDecl ConstructorDecl(Position pos, Flags flags, java.lang.String name, java.util.List argTypes, java.util.List excTypes, Block body)
           
 Free Free(Position pos, Expr expr)
           
 KeyNode KeyNode(Position pos, Key key)
           
 MethodDecl MethodDecl(Position pos, Flags flags, TypeNode returnType, java.lang.String name, java.util.List argTypes, java.util.List excTypes, Block body)
           
 ThrowConstraintNode ThrowConstraintNode(Position pos, TypeNode tn, KeySetNode keys)
           
 New TrackedNew(Position pos, Expr outer, KeyNode key, TypeNode objectType, java.util.List args, ClassBody body)
           
 TrackedTypeNode TrackedTypeNode(Position pos, KeyNode key, TypeNode base)
           
 
Methods inherited from class polyglot.ext.jl.ast.NodeFactory_c
AmbAssign, AmbExpr, AmbPrefix, AmbQualifierNode, AmbReceiver, AmbTypeNode, ArrayAccess, ArrayAccessAssign, ArrayInit, ArrayTypeNode, Assert, Binary, Block, BooleanLit, Branch, Call, CanonicalTypeNode, Case, Cast, Catch, CharLit, ClassBody, ClassLit, Conditional, ConstructorCall, delFactory, Do, Empty, Eval, extFactory, Field, FieldAssign, FieldDecl, findExtFactInstance, FloatLit, For, Formal, If, Import, Initializer, Instanceof, IntLit, Labeled, Local, LocalAssign, LocalClassDecl, LocalDecl, New, NewArray, NullLit, PackageNode, Return, SourceCollection, SourceFile, Special, StringLit, Switch, SwitchBlock, Synchronized, Throw, Try, Unary, While
 
Methods inherited from class polyglot.ext.jl.ast.AbstractNodeFactory_c
AmbPrefix, AmbQualifierNode, AmbReceiver, AmbTypeNode, ArrayInit, Assert, Block, Block, Block, Block, Block, Branch, Break, Break, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, ConstructorCall, Continue, Continue, Default, disamb, Field, FieldDecl, If, LocalDecl, New, New, New, NewArray, NewArray, NewArray, Return, SourceFile, SourceFile, Special, Super, Super, SuperCall, SuperCall, This, This, ThisCall, ThisCall, Try, Unary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface polyglot.ast.NodeFactory
AmbAssign, AmbExpr, AmbPrefix, AmbPrefix, AmbQualifierNode, AmbQualifierNode, AmbReceiver, AmbReceiver, AmbTypeNode, AmbTypeNode, ArrayAccess, ArrayAccessAssign, ArrayInit, ArrayInit, ArrayTypeNode, Assert, Assert, Binary, Block, Block, Block, Block, Block, Block, BooleanLit, Branch, Branch, Break, Break, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, CanonicalTypeNode, Case, Cast, Catch, CharLit, ClassBody, ClassLit, Conditional, ConstructorCall, ConstructorCall, Continue, Continue, Default, disamb, Do, Empty, Eval, Field, Field, FieldAssign, FieldDecl, FieldDecl, FloatLit, For, Formal, If, If, Import, Initializer, Instanceof, IntLit, Labeled, Local, LocalAssign, LocalClassDecl, LocalDecl, LocalDecl, New, New, New, New, NewArray, NewArray, NewArray, NewArray, NullLit, PackageNode, Return, Return, SourceCollection, SourceFile, SourceFile, SourceFile, Special, Special, StringLit, Super, Super, SuperCall, SuperCall, Switch, SwitchBlock, Synchronized, This, This, ThisCall, ThisCall, Throw, Try, Try, Unary, Unary, While
 

Constructor Detail

CofferNodeFactory_c

public CofferNodeFactory_c()

CofferNodeFactory_c

protected CofferNodeFactory_c(ExtFactory extFact)
Method Detail

TrackedNew

public New TrackedNew(Position pos,
                      Expr outer,
                      KeyNode key,
                      TypeNode objectType,
                      java.util.List args,
                      ClassBody body)
Specified by:
TrackedNew in interface CofferNodeFactory

Free

public Free Free(Position pos,
                 Expr expr)
Specified by:
Free in interface CofferNodeFactory

TrackedTypeNode

public TrackedTypeNode TrackedTypeNode(Position pos,
                                       KeyNode key,
                                       TypeNode base)
Specified by:
TrackedTypeNode in interface CofferNodeFactory

AmbKeySetNode

public AmbKeySetNode AmbKeySetNode(Position pos,
                                   java.util.List keys)
Specified by:
AmbKeySetNode in interface CofferNodeFactory

CanonicalKeySetNode

public CanonicalKeySetNode CanonicalKeySetNode(Position pos,
                                               KeySet keys)
Specified by:
CanonicalKeySetNode in interface CofferNodeFactory

KeyNode

public KeyNode KeyNode(Position pos,
                       Key key)
Specified by:
KeyNode in interface CofferNodeFactory

ClassDecl

public ClassDecl ClassDecl(Position pos,
                           Flags flags,
                           java.lang.String name,
                           TypeNode superClass,
                           java.util.List interfaces,
                           ClassBody body)
Specified by:
ClassDecl in interface NodeFactory
Overrides:
ClassDecl in class NodeFactory_c

CofferClassDecl

public CofferClassDecl CofferClassDecl(Position pos,
                                       Flags flags,
                                       java.lang.String name,
                                       KeyNode key,
                                       TypeNode superClass,
                                       java.util.List interfaces,
                                       ClassBody body)
Specified by:
CofferClassDecl in interface CofferNodeFactory

ThrowConstraintNode

public ThrowConstraintNode ThrowConstraintNode(Position pos,
                                               TypeNode tn,
                                               KeySetNode keys)
Specified by:
ThrowConstraintNode in interface CofferNodeFactory

MethodDecl

public MethodDecl MethodDecl(Position pos,
                             Flags flags,
                             TypeNode returnType,
                             java.lang.String name,
                             java.util.List argTypes,
                             java.util.List excTypes,
                             Block body)
Specified by:
MethodDecl in interface NodeFactory
Overrides:
MethodDecl in class NodeFactory_c

ConstructorDecl

public ConstructorDecl ConstructorDecl(Position pos,
                                       Flags flags,
                                       java.lang.String name,
                                       java.util.List argTypes,
                                       java.util.List excTypes,
                                       Block body)
Specified by:
ConstructorDecl in interface NodeFactory
Overrides:
ConstructorDecl in class NodeFactory_c

CofferMethodDecl

public CofferMethodDecl CofferMethodDecl(Position pos,
                                         Flags flags,
                                         TypeNode returnType,
                                         java.lang.String name,
                                         java.util.List argTypes,
                                         KeySetNode entryKeys,
                                         KeySetNode returnKeys,
                                         java.util.List throwConstraints,
                                         Block body)
Specified by:
CofferMethodDecl in interface CofferNodeFactory

CofferConstructorDecl

public CofferConstructorDecl CofferConstructorDecl(Position pos,
                                                   Flags flags,
                                                   java.lang.String name,
                                                   java.util.List argTypes,
                                                   KeySetNode entryKeys,
                                                   KeySetNode returnKeys,
                                                   java.util.List throwConstraints,
                                                   Block body)
Specified by:
CofferConstructorDecl in interface CofferNodeFactory

Assign

public Assign Assign(Position pos,
                     Expr left,
                     Assign.Operator op,
                     Expr right)
Specified by:
Assign in interface NodeFactory
Overrides:
Assign in class NodeFactory_c