public class ClassifierAssignment extends Declaration
Modifier and Type | Field and Description |
---|---|
Argument |
argument
(¬ø) The input specification of the classifier.
|
Name |
cacheIn
(ø) The expression representing the field to cache this classifier's result in.
|
ClassifierExpression |
expression
(¬ø) The expression representing the classifier.
|
static String |
mapCache
This value is used in place of the field access which appears as an argument to
cachedin to indicate that in fact, cached was used instead. |
ClassifierReturnType |
returnType
(¬ø) The return type of the classifier.
|
boolean |
singleExampleCache
Whether the classifier will have a single example feature vector cache.
|
comment, name
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
ClassifierAssignment(ClassifierReturnType t,
TokenValue i,
Argument a,
ClassifierExpression e)
Parser's constructor.
|
ClassifierAssignment(ClassifierReturnType t,
TokenValue i,
Argument a,
ClassifierExpression e,
boolean sc)
Parser's constructor.
|
ClassifierAssignment(ClassifierReturnType t,
TokenValue i,
Argument a,
ClassifierExpression e,
Name c)
Parser's constructor.
|
ClassifierAssignment(ClassifierReturnType t,
TokenValue i,
Argument a,
ClassifierExpression e,
Name c,
boolean sc)
Parser's constructor.
|
ClassifierAssignment(String co,
ClassifierReturnType t,
Name n,
Argument a,
ClassifierExpression e,
Name ca,
boolean sc)
Full 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.
|
Type |
getType()
Returns the type of the declaration.
|
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 static final String mapCache
cachedin
to indicate that in fact, cached
was used instead.public ClassifierReturnType returnType
public Argument argument
public ClassifierExpression expression
public Name cacheIn
public boolean singleExampleCache
public ClassifierAssignment(String co, ClassifierReturnType t, Name n, Argument a, ClassifierExpression e, Name ca, boolean sc)
co
- A Javadoc comment associated with the declaration.t
- The return type of the classifier.n
- The classifier's name.a
- The input specification of the classifier.e
- The expression representing the classifier.ca
- The expression representing the field to cache this classifier's result in.sc
- Whether or not to make a single example cache.public ClassifierAssignment(ClassifierReturnType t, TokenValue i, Argument a, ClassifierExpression e)
t
- The return type of the classifier.i
- The identifier token representing the classifier's name.a
- The input specification of the classifier.e
- The expression representing the classifier.public ClassifierAssignment(ClassifierReturnType t, TokenValue i, Argument a, ClassifierExpression e, Name c)
t
- The return type of the classifier.i
- The identifier token representing the classifier's name.a
- The input specification of the classifier.e
- The expression representing the classifier.c
- The expression representing the field to cache this classifier's result in.public ClassifierAssignment(ClassifierReturnType t, TokenValue i, Argument a, ClassifierExpression e, boolean sc)
t
- The return type of the classifier.i
- The identifier token representing the classifier's name.a
- The input specification of the classifier.e
- The expression representing the classifier.sc
- Whether or not to make a single example cache.public ClassifierAssignment(ClassifierReturnType t, TokenValue i, Argument a, ClassifierExpression e, Name c, boolean sc)
t
- The return type of the classifier.i
- The identifier token representing the classifier's name.a
- The input specification of the classifier.e
- The expression representing the classifier.c
- The expression representing the field to cache this classifier's result in.sc
- Whether or not to make a single example cache.public Type getType()
getType
in class Declaration
public ASTNodeIterator iterator()
iterator
in class Declaration
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.