Package patsy
Enum PatsyOperator
- java.lang.Object
-
- java.lang.Enum<PatsyOperator>
-
- patsy.PatsyOperator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PatsyOperator>
public enum PatsyOperator extends java.lang.Enum<PatsyOperator>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BINARY_ADDBINARY_DIVIDEBINARY_MULTIPLYBINARY_SUBTRACTBINARY_TILDEINTERACTOPEN_PARENUNARY_MINUSUNARY_PLUSUNARY_TILDE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetArity()intgetKind()intgetPrecedence()static PatsyOperatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PatsyOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNARY_TILDE
public static final PatsyOperator UNARY_TILDE
-
UNARY_PLUS
public static final PatsyOperator UNARY_PLUS
-
UNARY_MINUS
public static final PatsyOperator UNARY_MINUS
-
BINARY_TILDE
public static final PatsyOperator BINARY_TILDE
-
BINARY_ADD
public static final PatsyOperator BINARY_ADD
-
BINARY_SUBTRACT
public static final PatsyOperator BINARY_SUBTRACT
-
BINARY_DIVIDE
public static final PatsyOperator BINARY_DIVIDE
-
BINARY_MULTIPLY
public static final PatsyOperator BINARY_MULTIPLY
-
INTERACT
public static final PatsyOperator INTERACT
-
OPEN_PAREN
public static final PatsyOperator OPEN_PAREN
-
-
Method Detail
-
values
public static PatsyOperator[] 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 (PatsyOperator c : PatsyOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PatsyOperator valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getKind
public int getKind()
-
getArity
public int getArity()
-
getPrecedence
public int getPrecedence()
-
-