public enum AssignmentOperator extends Enum<AssignmentOperator> implements Operator
Enum Constant and Description |
---|
Assignment |
PostDecrementAssign |
PostIncrementAssign |
PreDecrementAssign |
PreIncrementAssign |
Modifier and Type | Method and Description |
---|---|
void |
assertCanBeApplied(MetaClass clazz) |
boolean |
canBeApplied(MetaClass clazz) |
String |
getCanonicalString() |
int |
getOperatorPrecedence() |
boolean |
isEqualOrHigherPrecedenceThan(Operator op) |
boolean |
isHigherPrecedenceThan(Operator op) |
static AssignmentOperator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssignmentOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssignmentOperator Assignment
public static final AssignmentOperator PreIncrementAssign
public static final AssignmentOperator PostIncrementAssign
public static final AssignmentOperator PreDecrementAssign
public static final AssignmentOperator PostDecrementAssign
public static AssignmentOperator[] values()
for (AssignmentOperator c : AssignmentOperator.values()) System.out.println(c);
public static AssignmentOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getCanonicalString()
getCanonicalString
in interface Operator
public int getOperatorPrecedence()
getOperatorPrecedence
in interface Operator
public boolean isHigherPrecedenceThan(Operator op)
isHigherPrecedenceThan
in interface Operator
public boolean isEqualOrHigherPrecedenceThan(Operator op)
isEqualOrHigherPrecedenceThan
in interface Operator
public boolean canBeApplied(MetaClass clazz)
canBeApplied
in interface Operator
public void assertCanBeApplied(MetaClass clazz)
assertCanBeApplied
in interface Operator
Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.