Package com.sonarsource.rpg.api.tree
Enum ExpressionTree.Kind
- java.lang.Object
-
- java.lang.Enum<ExpressionTree.Kind>
-
- com.sonarsource.rpg.api.tree.ExpressionTree.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<ExpressionTree.Kind>
- Enclosing interface:
- ExpressionTree
public static enum ExpressionTree.Kind extends Enum<ExpressionTree.Kind>
Precise kind of an expression. This can be used for example to know which operator is used by aBinaryExpressionTree
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AND
BINARY_MINUS
BINARY_PLUS
DIVISION
EQ_COMPARISON
GE_COMPARISON
GT_COMPARISON
IDENTIFIER
LE_COMPARISON
LIST
LITERAL
LT_COMPARISON
MULTIPLICATION
NE_COMPARISON
NOT
OR
PARENTHESISED
POSTFIX
POWER
QUALIFIED_NAME
STAR_INDEX
UNARY_MINUS
UNARY_PLUS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExpressionTree.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExpressionTree.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LITERAL
public static final ExpressionTree.Kind LITERAL
-
IDENTIFIER
public static final ExpressionTree.Kind IDENTIFIER
-
BINARY_PLUS
public static final ExpressionTree.Kind BINARY_PLUS
-
BINARY_MINUS
public static final ExpressionTree.Kind BINARY_MINUS
-
MULTIPLICATION
public static final ExpressionTree.Kind MULTIPLICATION
-
DIVISION
public static final ExpressionTree.Kind DIVISION
-
POWER
public static final ExpressionTree.Kind POWER
-
UNARY_PLUS
public static final ExpressionTree.Kind UNARY_PLUS
-
UNARY_MINUS
public static final ExpressionTree.Kind UNARY_MINUS
-
NOT
public static final ExpressionTree.Kind NOT
-
EQ_COMPARISON
public static final ExpressionTree.Kind EQ_COMPARISON
-
NE_COMPARISON
public static final ExpressionTree.Kind NE_COMPARISON
-
GT_COMPARISON
public static final ExpressionTree.Kind GT_COMPARISON
-
GE_COMPARISON
public static final ExpressionTree.Kind GE_COMPARISON
-
LT_COMPARISON
public static final ExpressionTree.Kind LT_COMPARISON
-
LE_COMPARISON
public static final ExpressionTree.Kind LE_COMPARISON
-
AND
public static final ExpressionTree.Kind AND
-
OR
public static final ExpressionTree.Kind OR
-
POSTFIX
public static final ExpressionTree.Kind POSTFIX
-
QUALIFIED_NAME
public static final ExpressionTree.Kind QUALIFIED_NAME
-
LIST
public static final ExpressionTree.Kind LIST
-
STAR_INDEX
public static final ExpressionTree.Kind STAR_INDEX
-
PARENTHESISED
public static final ExpressionTree.Kind PARENTHESISED
-
-
Method Detail
-
values
public static ExpressionTree.Kind[] 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 (ExpressionTree.Kind c : ExpressionTree.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExpressionTree.Kind 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 nameNullPointerException
- if the argument is null
-
-