com.pnfsoftware.jeb.core.units.code.java.IJavaOperator |
This interface is used to define a Java operator.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract IJavaType |
getCastType()
Return the cast type of a cast operator.
| ||||||||||
abstract JavaOperatorType |
getOperatorType()
Get the type of operator represented by this object.
| ||||||||||
abstract boolean |
isArithmetic()
Determine if the operator is an arithmetic operator.
| ||||||||||
abstract boolean |
isBinary()
Determine if the operator uses two operands.
| ||||||||||
abstract boolean |
isCast()
Determine if the operator is a cast operator.
| ||||||||||
abstract boolean |
isLogical()
Determine if the operator is a logical operator, ie one that evaluates to true or false.
| ||||||||||
abstract boolean |
isUnary()
Determine if the operator uses a single operand.
| ||||||||||
abstract String |
toString()
Provide a textual representation of the operator.
|
Return the cast type of a cast operator. This method will throw if the operator is not a cast
operator. Use isCast()
first.
Get the type of operator represented by this object.
Determine if the operator is an arithmetic operator.
Determine if the operator uses two operands.
Determine if the operator is a cast operator.
Determine if the operator is a logical operator, ie one that evaluates to true or false.
Determine if the operator uses a single operand.
Provide a textual representation of the operator.