public class ASTCharge extends SimpleNode
Constructor and Description |
---|
ASTCharge(int id)
Creates a new instance.
|
ASTCharge(SMARTSParser p,
int id)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getCharge()
Returns the charge value.
|
boolean |
isPositive()
Returns true if charge is positive.
|
Object |
jjtAccept(SMARTSParserVisitor visitor,
Object data)
Accept the visitor.
|
void |
setCharge(int charge)
Sets the charge value.
|
void |
setPositive(boolean isPositive)
Sets whether the charge is positive.
|
childrenAccept, clone, dump, getId, getParser, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtRemoveChild, jjtSetParent, setId, setParser, toString, toString
public ASTCharge(int id)
public ASTCharge(SMARTSParser p, int id)
public int getCharge()
public boolean isPositive()
public Object jjtAccept(SMARTSParserVisitor visitor, Object data)
SimpleNode
jjtAccept
in interface Node
jjtAccept
in class SimpleNode
public void setCharge(int charge)
public void setPositive(boolean isPositive)