polyglot.ext.j0.ast
Class J0NodeFactory_c

java.lang.Object
  extended bypolyglot.ext.jl.ast.AbstractNodeFactory_c
      extended bypolyglot.ext.jl.ast.NodeFactory_c
          extended bypolyglot.ext.j0.ast.J0NodeFactory_c
All Implemented Interfaces:
J0NodeFactory, NodeFactory

public class J0NodeFactory_c
extends NodeFactory_c
implements J0NodeFactory

NodeFactory for the j0 extension.


Constructor Summary
J0NodeFactory_c()
           
 
Method Summary
 Call Call(Position pos, Receiver target, java.lang.String name, java.util.List args)
           
 ImportStaticMethod ImportStaticMethod(Position pos, java.lang.String name, java.util.List parameters)
           
 SourceFile SourceFile(Position fpos, PackageNode a, java.util.List b, java.util.List l, ExtensionInfo ext, java.lang.String fileName)
          Create a J0 SourceFile node.
 
Methods inherited from class polyglot.ext.jl.ast.NodeFactory_c
AmbAssign, AmbExpr, AmbPrefix, AmbQualifierNode, AmbReceiver, AmbTypeNode, ArrayAccess, ArrayAccessAssign, ArrayInit, ArrayTypeNode, Assert, Assign, Binary, Block, BooleanLit, Branch, CanonicalTypeNode, Case, Cast, Catch, CharLit, ClassBody, ClassDecl, ClassLit, Conditional, ConstructorCall, ConstructorDecl, delFactory, Do, Empty, Eval, extFactory, Field, FieldAssign, FieldDecl, findExtFactInstance, FloatLit, For, Formal, If, Import, Initializer, Instanceof, IntLit, Labeled, Local, LocalAssign, LocalClassDecl, LocalDecl, MethodDecl, 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, Assign, Binary, Block, Block, Block, Block, Block, Block, BooleanLit, Branch, Branch, Break, Break, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, Call, CanonicalTypeNode, Case, Cast, Catch, CharLit, ClassBody, ClassDecl, ClassLit, Conditional, ConstructorCall, ConstructorCall, ConstructorDecl, 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, MethodDecl, 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

J0NodeFactory_c

public J0NodeFactory_c()
Method Detail

SourceFile

public SourceFile SourceFile(Position fpos,
                             PackageNode a,
                             java.util.List b,
                             java.util.List l,
                             ExtensionInfo ext,
                             java.lang.String fileName)
Create a J0 SourceFile node. Requires extra arguments to aid in inference of the implied J0 structures.

Specified by:
SourceFile in interface J0NodeFactory
Parameters:
fpos - the position of the sourcefile.
l - the list of j0 top level declarations, as defined in the j0 grammar
a - the package node
b - the imports node
ext - ExtensionInfo (needed for quasi-quoting)
fileName - the file name of the sourcefile

Call

public Call Call(Position pos,
                 Receiver target,
                 java.lang.String name,
                 java.util.List args)
Specified by:
Call in interface NodeFactory
Overrides:
Call in class NodeFactory_c

ImportStaticMethod

public ImportStaticMethod ImportStaticMethod(Position pos,
                                             java.lang.String name,
                                             java.util.List parameters)
Specified by:
ImportStaticMethod in interface J0NodeFactory