org.jboss.errai.codegen
Enum ArithmeticOperator
java.lang.Object
java.lang.Enum<ArithmeticOperator>
org.jboss.errai.codegen.ArithmeticOperator
- All Implemented Interfaces:
- Serializable, Comparable<ArithmeticOperator>, Operator
public enum ArithmeticOperator
- extends Enum<ArithmeticOperator>
- implements Operator
- Author:
- Christian Sadilek
Addition
public static final ArithmeticOperator Addition
Subtraction
public static final ArithmeticOperator Subtraction
Multiplication
public static final ArithmeticOperator Multiplication
Division
public static final ArithmeticOperator Division
Remainder
public static final ArithmeticOperator Remainder
values
public static ArithmeticOperator[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ArithmeticOperator c : ArithmeticOperator.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ArithmeticOperator valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
getCanonicalString
public String getCanonicalString()
- Specified by:
getCanonicalString
in interface Operator
getOperatorPrecedence
public int getOperatorPrecedence()
- Specified by:
getOperatorPrecedence
in interface Operator
isHigherPrecedenceThan
public boolean isHigherPrecedenceThan(Operator operator)
- Specified by:
isHigherPrecedenceThan
in interface Operator
isEqualOrHigherPrecedenceThan
public boolean isEqualOrHigherPrecedenceThan(Operator operator)
- Specified by:
isEqualOrHigherPrecedenceThan
in interface Operator
canBeApplied
public boolean canBeApplied(MetaClass clazz)
- Specified by:
canBeApplied
in interface Operator
assertCanBeApplied
public void assertCanBeApplied(MetaClass clazz)
- Specified by:
assertCanBeApplied
in interface Operator
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.