polyglot.ext.jl.ast
Class AbstractNodeFactory_c
java.lang.Object
polyglot.ext.jl.ast.AbstractNodeFactory_c
- All Implemented Interfaces:
- NodeFactory
- Direct Known Subclasses:
- NodeFactory_c
public abstract class AbstractNodeFactory_c
- extends java.lang.Object
- implements NodeFactory
This is a node factory that creates no nodes. It, rather than
NodeFactory_c, should be subclassed by any extension which should
override the creation of all nodes.
Method Summary |
AmbPrefix |
AmbPrefix(Position pos,
java.lang.String name)
|
AmbQualifierNode |
AmbQualifierNode(Position pos,
java.lang.String name)
|
AmbReceiver |
AmbReceiver(Position pos,
java.lang.String name)
|
AmbTypeNode |
AmbTypeNode(Position pos,
java.lang.String name)
|
ArrayInit |
ArrayInit(Position pos)
|
Assert |
Assert(Position pos,
Expr cond)
|
Block |
Block(Position pos)
|
Block |
Block(Position pos,
Stmt s1)
|
Block |
Block(Position pos,
Stmt s1,
Stmt s2)
|
Block |
Block(Position pos,
Stmt s1,
Stmt s2,
Stmt s3)
|
Block |
Block(Position pos,
Stmt s1,
Stmt s2,
Stmt s3,
Stmt s4)
|
Branch |
Branch(Position pos,
Branch.Kind kind)
|
Branch |
Break(Position pos)
|
Branch |
Break(Position pos,
java.lang.String label)
|
Call |
Call(Position pos,
Receiver target,
java.lang.String name)
|
Call |
Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1)
|
Call |
Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1,
Expr a2)
|
Call |
Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3)
|
Call |
Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3,
Expr a4)
|
Call |
Call(Position pos,
java.lang.String name)
|
Call |
Call(Position pos,
java.lang.String name,
Expr a1)
|
Call |
Call(Position pos,
java.lang.String name,
Expr a1,
Expr a2)
|
Call |
Call(Position pos,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3)
|
Call |
Call(Position pos,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3,
Expr a4)
|
Call |
Call(Position pos,
java.lang.String name,
java.util.List args)
|
ConstructorCall |
ConstructorCall(Position pos,
ConstructorCall.Kind kind,
java.util.List args)
|
Branch |
Continue(Position pos)
|
Branch |
Continue(Position pos,
java.lang.String label)
|
Case |
Default(Position pos)
|
Disamb |
disamb()
Returns a disambiguator for nodes from this factory. |
Field |
Field(Position pos,
java.lang.String name)
|
FieldDecl |
FieldDecl(Position pos,
Flags flags,
TypeNode type,
java.lang.String name)
|
If |
If(Position pos,
Expr cond,
Stmt consequent)
|
LocalDecl |
LocalDecl(Position pos,
Flags flags,
TypeNode type,
java.lang.String name)
|
New |
New(Position pos,
Expr outer,
TypeNode objectType,
java.util.List args)
|
New |
New(Position pos,
TypeNode type,
java.util.List args)
|
New |
New(Position pos,
TypeNode type,
java.util.List args,
ClassBody body)
|
NewArray |
NewArray(Position pos,
TypeNode base,
int addDims,
ArrayInit init)
|
NewArray |
NewArray(Position pos,
TypeNode base,
java.util.List dims)
|
NewArray |
NewArray(Position pos,
TypeNode base,
java.util.List dims,
int addDims)
|
Return |
Return(Position pos)
|
SourceFile |
SourceFile(Position pos,
java.util.List decls)
|
SourceFile |
SourceFile(Position pos,
java.util.List imports,
java.util.List decls)
|
Special |
Special(Position pos,
Special.Kind kind)
|
Special |
Super(Position pos)
|
Special |
Super(Position pos,
TypeNode outer)
|
ConstructorCall |
SuperCall(Position pos,
Expr outer,
java.util.List args)
|
ConstructorCall |
SuperCall(Position pos,
java.util.List args)
|
Special |
This(Position pos)
|
Special |
This(Position pos,
TypeNode outer)
|
ConstructorCall |
ThisCall(Position pos,
Expr outer,
java.util.List args)
|
ConstructorCall |
ThisCall(Position pos,
java.util.List args)
|
Try |
Try(Position pos,
Block tryBlock,
java.util.List catchBlocks)
|
Unary |
Unary(Position pos,
Expr expr,
Unary.Operator op)
|
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, AmbQualifierNode, AmbReceiver, AmbTypeNode, ArrayAccess, ArrayAccessAssign, ArrayInit, ArrayTypeNode, Assert, Assign, Binary, Block, BooleanLit, Branch, Call, CanonicalTypeNode, Case, Cast, Catch, CharLit, ClassBody, ClassDecl, ClassLit, Conditional, ConstructorCall, ConstructorDecl, Do, Empty, Eval, Field, FieldAssign, FieldDecl, 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 |
AbstractNodeFactory_c
public AbstractNodeFactory_c()
disamb
public Disamb disamb()
- Description copied from interface:
NodeFactory
- Returns a disambiguator for nodes from this factory.
- Specified by:
disamb
in interface NodeFactory
AmbPrefix
public final AmbPrefix AmbPrefix(Position pos,
java.lang.String name)
- Specified by:
AmbPrefix
in interface NodeFactory
AmbReceiver
public final AmbReceiver AmbReceiver(Position pos,
java.lang.String name)
- Specified by:
AmbReceiver
in interface NodeFactory
AmbQualifierNode
public final AmbQualifierNode AmbQualifierNode(Position pos,
java.lang.String name)
- Specified by:
AmbQualifierNode
in interface NodeFactory
AmbTypeNode
public final AmbTypeNode AmbTypeNode(Position pos,
java.lang.String name)
- Specified by:
AmbTypeNode
in interface NodeFactory
ArrayInit
public final ArrayInit ArrayInit(Position pos)
- Specified by:
ArrayInit
in interface NodeFactory
Assert
public final Assert Assert(Position pos,
Expr cond)
- Specified by:
Assert
in interface NodeFactory
Block
public final Block Block(Position pos)
- Specified by:
Block
in interface NodeFactory
Block
public final Block Block(Position pos,
Stmt s1)
- Specified by:
Block
in interface NodeFactory
Block
public final Block Block(Position pos,
Stmt s1,
Stmt s2)
- Specified by:
Block
in interface NodeFactory
Block
public final Block Block(Position pos,
Stmt s1,
Stmt s2,
Stmt s3)
- Specified by:
Block
in interface NodeFactory
Block
public final Block Block(Position pos,
Stmt s1,
Stmt s2,
Stmt s3,
Stmt s4)
- Specified by:
Block
in interface NodeFactory
Break
public final Branch Break(Position pos)
- Specified by:
Break
in interface NodeFactory
Break
public final Branch Break(Position pos,
java.lang.String label)
- Specified by:
Break
in interface NodeFactory
Continue
public final Branch Continue(Position pos)
- Specified by:
Continue
in interface NodeFactory
Continue
public final Branch Continue(Position pos,
java.lang.String label)
- Specified by:
Continue
in interface NodeFactory
Branch
public final Branch Branch(Position pos,
Branch.Kind kind)
- Specified by:
Branch
in interface NodeFactory
Call
public final Call Call(Position pos,
java.lang.String name)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
java.lang.String name,
Expr a1)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
java.lang.String name,
Expr a1,
Expr a2)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3,
Expr a4)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
java.lang.String name,
java.util.List args)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
Receiver target,
java.lang.String name)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1,
Expr a2)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3)
- Specified by:
Call
in interface NodeFactory
Call
public final Call Call(Position pos,
Receiver target,
java.lang.String name,
Expr a1,
Expr a2,
Expr a3,
Expr a4)
- Specified by:
Call
in interface NodeFactory
Default
public final Case Default(Position pos)
- Specified by:
Default
in interface NodeFactory
ThisCall
public final ConstructorCall ThisCall(Position pos,
java.util.List args)
- Specified by:
ThisCall
in interface NodeFactory
ThisCall
public final ConstructorCall ThisCall(Position pos,
Expr outer,
java.util.List args)
- Specified by:
ThisCall
in interface NodeFactory
SuperCall
public final ConstructorCall SuperCall(Position pos,
java.util.List args)
- Specified by:
SuperCall
in interface NodeFactory
SuperCall
public final ConstructorCall SuperCall(Position pos,
Expr outer,
java.util.List args)
- Specified by:
SuperCall
in interface NodeFactory
ConstructorCall
public final ConstructorCall ConstructorCall(Position pos,
ConstructorCall.Kind kind,
java.util.List args)
- Specified by:
ConstructorCall
in interface NodeFactory
FieldDecl
public final FieldDecl FieldDecl(Position pos,
Flags flags,
TypeNode type,
java.lang.String name)
- Specified by:
FieldDecl
in interface NodeFactory
Field
public final Field Field(Position pos,
java.lang.String name)
- Specified by:
Field
in interface NodeFactory
If
public final If If(Position pos,
Expr cond,
Stmt consequent)
- Specified by:
If
in interface NodeFactory
LocalDecl
public final LocalDecl LocalDecl(Position pos,
Flags flags,
TypeNode type,
java.lang.String name)
- Specified by:
LocalDecl
in interface NodeFactory
New
public final New New(Position pos,
TypeNode type,
java.util.List args)
- Specified by:
New
in interface NodeFactory
New
public final New New(Position pos,
TypeNode type,
java.util.List args,
ClassBody body)
- Specified by:
New
in interface NodeFactory
New
public final New New(Position pos,
Expr outer,
TypeNode objectType,
java.util.List args)
- Specified by:
New
in interface NodeFactory
NewArray
public final NewArray NewArray(Position pos,
TypeNode base,
java.util.List dims)
- Specified by:
NewArray
in interface NodeFactory
NewArray
public final NewArray NewArray(Position pos,
TypeNode base,
java.util.List dims,
int addDims)
- Specified by:
NewArray
in interface NodeFactory
NewArray
public final NewArray NewArray(Position pos,
TypeNode base,
int addDims,
ArrayInit init)
- Specified by:
NewArray
in interface NodeFactory
Return
public final Return Return(Position pos)
- Specified by:
Return
in interface NodeFactory
SourceFile
public final SourceFile SourceFile(Position pos,
java.util.List decls)
- Specified by:
SourceFile
in interface NodeFactory
SourceFile
public final SourceFile SourceFile(Position pos,
java.util.List imports,
java.util.List decls)
- Specified by:
SourceFile
in interface NodeFactory
This
public final Special This(Position pos)
- Specified by:
This
in interface NodeFactory
This
public final Special This(Position pos,
TypeNode outer)
- Specified by:
This
in interface NodeFactory
Super
public final Special Super(Position pos)
- Specified by:
Super
in interface NodeFactory
Super
public final Special Super(Position pos,
TypeNode outer)
- Specified by:
Super
in interface NodeFactory
Special
public final Special Special(Position pos,
Special.Kind kind)
- Specified by:
Special
in interface NodeFactory
Try
public final Try Try(Position pos,
Block tryBlock,
java.util.List catchBlocks)
- Specified by:
Try
in interface NodeFactory
Unary
public final Unary Unary(Position pos,
Expr expr,
Unary.Operator op)
- Specified by:
Unary
in interface NodeFactory