public class SafeDivideValidator extends ValueCollector
Collector.ModeNode.Visitor.State, Node.Visitor.Status| Constructor and Description |
|---|
SafeDivideValidator(java.lang.String objectname) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Node n)
Return true if this node can be accepted by the Collector
|
java.lang.String |
getDenominator(Node divOperand)
returns the attribute that is in the denominator
|
Node |
getDenominatorNode(Node divOperand)
Get the attribute/function/keyword node that is being used in the
denominoator portion of the divide expression.
|
getValues, isIgnoreCasepublic boolean accept(Node n) throws java.rmi.RemoteException, MXException
Collectoraccept in class ValueCollectorjava.rmi.RemoteExceptionMXExceptionpublic java.lang.String getDenominator(Node divOperand) throws java.rmi.RemoteException, MXException
divOperand - MXExceptionjava.rmi.RemoteExceptionpublic Node getDenominatorNode(Node divOperand) throws java.rmi.RemoteException, MXException
divOperand - MXExceptionjava.rmi.RemoteException