public class SafeDivideValidator extends ValueCollector
Collector.Mode
Node.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, isIgnoreCase
public boolean accept(Node n) throws java.rmi.RemoteException, MXException
Collector
accept
in class ValueCollector
java.rmi.RemoteException
MXException
public java.lang.String getDenominator(Node divOperand) throws java.rmi.RemoteException, MXException
divOperand
- MXException
java.rmi.RemoteException
public Node getDenominatorNode(Node divOperand) throws java.rmi.RemoteException, MXException
divOperand
- MXException
java.rmi.RemoteException