public class OperatorMapping
extends java.lang.Object
Operator | Method Name |
---|---|
+ | operator_plus |
++ | operator_plusPlus |
- | operator_minus |
-- | operator_minusMinus |
** | operator_power |
* | operator_multiply |
/ | operator_divide |
% | operator_modulo |
<< | operator_doubleLessThan |
>> | operator_doubleGreaterThan |
<<< | operator_tripleLessThan |
>>> | operator_tripleGreaterThan |
?: | operator_elvis |
<> | operator_diamond |
<=> | operator_spaceship |
|| | operator_or |
&& | operator_and |
+= | operator_add |
-= | operator_remove |
*= | operator_multiplyAssign |
/= | operator_divideAssign |
%= | operator_moduloAssign |
<<= | operator_doubleLessThanAssign |
>>= | operator_doubleGreaterThanAssign |
>>>= | operator_tripleGreaterThanAssign |
== | operator_equals |
=== | operator_tripleEquals |
!== | operator_tripleNotEquals |
!= | operator_notEquals |
< | operator_lessThan |
<= | operator_lessEqualsThan |
> | operator_greaterThan |
>= | operator_greaterEqualsThan |
-> | operator_mappedTo |
.. | operator_upTo |
..< | operator_doubleDotLessThan |
>.. | operator_greaterThanDoubleDot |
! | operator_not |
=> | operator_doubleArrow |
initializeMapping()
to add other operators.Constructor and Description |
---|
OperatorMapping() |
Modifier and Type | Method and Description |
---|---|
QualifiedName |
getCompoundOperator(QualifiedName simpleOperator) |
java.util.Set<QualifiedName> |
getCompoundOperators() |
QualifiedName |
getMethodName(QualifiedName operator) |
QualifiedName |
getOperator(QualifiedName methodName) |
java.util.Set<QualifiedName> |
getOperators() |
QualifiedName |
getSimpleOperator(QualifiedName compoundOperator) |
protected void |
initializeMapping() |
boolean |
isBinaryOperator(QualifiedName operator) |
boolean |
isCompoundMethod(java.lang.String methodName) |
boolean |
isUnaryOperator(QualifiedName operator) |
public static final QualifiedName PLUS
public static final QualifiedName PLUS_PLUS
public static final QualifiedName MINUS
public static final QualifiedName MINUS_MINUS
public static final QualifiedName POWER
public static final QualifiedName MULTIPLY
public static final QualifiedName DIVIDE
public static final QualifiedName MODULO
public static final QualifiedName DOUBLE_LESS_THAN
public static final QualifiedName DOUBLE_GREATER_THAN
public static final QualifiedName TRIPLE_LESS_THAN
public static final QualifiedName TRIPLE_GREATER_THAN
public static final QualifiedName ELVIS
public static final QualifiedName DIAMOND
public static final QualifiedName SPACESHIP
public static final QualifiedName OR
public static final QualifiedName AND
public static final QualifiedName ADD
public static final QualifiedName REMOVE
public static final QualifiedName MULTIPLY_ASSIGN
public static final QualifiedName DIVIDE_ASSIGN
public static final QualifiedName MODULO_ASSIGN
public static final QualifiedName DOUBLE_LESS_THAN_ASSIGN
public static final QualifiedName DOUBLE_GREATER_THAN_ASSIGN
public static final QualifiedName TRIPLE_GREATER_THAN_ASSIGN
public static final QualifiedName EQUALS
public static final QualifiedName TRIPLE_EQUALS
public static final QualifiedName TRIPLE_NOT_EQUALS
public static final QualifiedName NOT_EQUALS
public static final QualifiedName LESS_THAN
public static final QualifiedName LESS_EQUALS_THAN
public static final QualifiedName GREATER_THAN
public static final QualifiedName GREATER_EQUALS_THAN
public static final QualifiedName MAPPED_TO
public static final QualifiedName UP_TO
public static final QualifiedName DOUBLE_DOT_LESS_THAN
public static final QualifiedName GREATER_THAN_DOUBLE_DOT
public static final QualifiedName NOT
public static final QualifiedName DOUBLE_ARROW
protected com.google.common.collect.BiMap<QualifiedName,QualifiedName> map
protected com.google.common.collect.BiMap<QualifiedName,QualifiedName> compoundOperatorMapping
public static final java.lang.String OP_PREFIX
protected void initializeMapping()
public QualifiedName getMethodName(QualifiedName operator)
public QualifiedName getOperator(QualifiedName methodName)
public java.util.Set<QualifiedName> getOperators()
public QualifiedName getCompoundOperator(QualifiedName simpleOperator)
public java.util.Set<QualifiedName> getCompoundOperators()
public QualifiedName getSimpleOperator(QualifiedName compoundOperator)
public boolean isCompoundMethod(java.lang.String methodName)
public boolean isBinaryOperator(QualifiedName operator)
public boolean isUnaryOperator(QualifiedName operator)