org.jetbrains.kotlin.parsing
Enum KotlinExpressionParsing.Precedence

java.lang.Object
  extended by java.lang.Enum<KotlinExpressionParsing.Precedence>
      extended by org.jetbrains.kotlin.parsing.KotlinExpressionParsing.Precedence
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<KotlinExpressionParsing.Precedence>
Enclosing class:
KotlinExpressionParsing

public static enum KotlinExpressionParsing.Precedence
extends java.lang.Enum<KotlinExpressionParsing.Precedence>


Enum Constant Summary
ADDITIVE
           
AS
           
ASSIGNMENT
           
COMPARISON
           
CONJUNCTION
           
DISJUNCTION
           
ELVIS
           
EQUALITY
           
IN_OR_IS
           
MULTIPLICATIVE
           
POSTFIX
           
PREFIX
           
RANGE
           
SIMPLE_NAME
           
 
Method Summary
 com.intellij.psi.tree.TokenSet getOperations()
           
 void parseHigherPrecedence(KotlinExpressionParsing parser)
           
 KtNodeType parseRightHandSide(com.intellij.psi.tree.IElementType operation, KotlinExpressionParsing parser)
           
static KotlinExpressionParsing.Precedence valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static KotlinExpressionParsing.Precedence[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

POSTFIX

public static final KotlinExpressionParsing.Precedence POSTFIX

PREFIX

public static final KotlinExpressionParsing.Precedence PREFIX

AS

public static final KotlinExpressionParsing.Precedence AS

MULTIPLICATIVE

public static final KotlinExpressionParsing.Precedence MULTIPLICATIVE

ADDITIVE

public static final KotlinExpressionParsing.Precedence ADDITIVE

RANGE

public static final KotlinExpressionParsing.Precedence RANGE

SIMPLE_NAME

public static final KotlinExpressionParsing.Precedence SIMPLE_NAME

ELVIS

public static final KotlinExpressionParsing.Precedence ELVIS

IN_OR_IS

public static final KotlinExpressionParsing.Precedence IN_OR_IS

COMPARISON

public static final KotlinExpressionParsing.Precedence COMPARISON

EQUALITY

public static final KotlinExpressionParsing.Precedence EQUALITY

CONJUNCTION

public static final KotlinExpressionParsing.Precedence CONJUNCTION

DISJUNCTION

public static final KotlinExpressionParsing.Precedence DISJUNCTION

ASSIGNMENT

public static final KotlinExpressionParsing.Precedence ASSIGNMENT
Method Detail

values

public static KotlinExpressionParsing.Precedence[] 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 (KotlinExpressionParsing.Precedence c : KotlinExpressionParsing.Precedence.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KotlinExpressionParsing.Precedence 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 name
java.lang.NullPointerException - if the argument is null

parseHigherPrecedence

public void parseHigherPrecedence(KotlinExpressionParsing parser)

parseRightHandSide

public KtNodeType parseRightHandSide(com.intellij.psi.tree.IElementType operation,
                                     KotlinExpressionParsing parser)
Parameters:
operation - the operation sign (e.g. PLUS or IS)
parser - the parser object
Returns:
node type of the result

getOperations

@NotNull
public final com.intellij.psi.tree.TokenSet getOperations()