public class SenseStatement extends Statement
Modifier and Type | Field and Description |
---|---|
Expression |
name
(ø) Represents the name of the feature being sensed (only used in generators).
|
boolean |
senseall
true iff this is a senseall statement. |
Expression |
value
(¬ø) Represents the value of the feature being sensed.
|
byteOffset, line, nodeID, symbolTable
Constructor and Description |
---|
SenseStatement(Expression v,
boolean all,
int line,
int byteOffset)
Initializing constructor.
|
SenseStatement(Expression n,
Expression v,
boolean all,
int line,
int byteOffset)
Full constructor.
|
SenseStatement(Expression n,
Expression v,
int line,
int byteOffset)
Initializing constructor.
|
SenseStatement(Expression v,
int line,
int byteOffset)
Initializing 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.
|
boolean |
equals(Object o)
Distinguishes this
ASTNode from other objects according to its contents recursively. |
int |
hashCode()
Returns a hash code for this
ASTNode . |
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 Expression name
public Expression value
public boolean senseall
true
iff this is a senseall
statement.public SenseStatement(Expression v, int line, int byteOffset)
v
- The value of the feature being sensed.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.public SenseStatement(Expression v, boolean all, int line, int byteOffset)
v
- The value of the feature being sensed.all
- true
iff this is a senseall
statement.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.public SenseStatement(Expression n, Expression v, int line, int byteOffset)
n
- The name of the feature being sensed.v
- The value of the feature being sensed.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.public SenseStatement(Expression n, Expression v, boolean all, int line, int byteOffset)
n
- The name of the feature being sensed.v
- The value of the feature being sensed.all
- true
iff this is a senseall
statement.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.public ASTNodeIterator iterator()
public Object clone()
public int hashCode()
ASTNode
.public boolean equals(Object o)
ASTNode
from other objects according to its contents recursively.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.