public static class InferenceDeclaration.NormalizerDeclaration extends ASTNode
NormalizerDeclaration
objects are only constructed by the
InferenceDeclaration
constructor and only stored in
InferenceDeclaration
objects.Modifier and Type | Field and Description |
---|---|
Name |
learner
(ø) The name of the learner to be normalized.
|
InstanceCreationExpression |
normalizer
(¬ø) Constructs the normalizer to use.
|
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
NormalizerDeclaration(int line,
int byteOffset,
Name l,
InstanceCreationExpression n)
Full constructor.
|
NormalizerDeclaration(TokenValue t,
Name l,
InstanceCreationExpression n)
Parser's constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a new object with the same primitive data, and recursively creates new member
data objects as well.
|
ASTNodeIterator |
iterator()
Returns an iterator used to successively access the children of this node.
|
void |
runPass(Pass pass)
Ensures that the correct
run() method is called for this type of node. |
void |
write(StringBuffer buffer)
Writes a string representation of this
ASTNode to the specified buffer. |
public Name learner
public InstanceCreationExpression normalizer
public NormalizerDeclaration(int line, int byteOffset, Name l, InstanceCreationExpression n)
line
- The line on which the source code represented by this node is found.byteOffset
- The byte offset from the beginning of the source file at which the
source code represented by this node is found.l
- The name of the learner.n
- Constructs the normalizer.public NormalizerDeclaration(TokenValue t, Name l, InstanceCreationExpression n)
t
- The token containing line and byte offset information.l
- The name of the learner.n
- Constructs the normalizer.public ASTNodeIterator iterator()
public Object clone()
public void runPass(Pass pass)
run()
method is called for this type of node.public void write(StringBuffer buffer)
ASTNode
to the specified buffer. The
representation written is parsable by the LBJava compiler, but not very readable.Copyright © 2016. All rights reserved.