Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.model.java.source.tree
Class ExpressionT.ExpressionKind  view ExpressionT.ExpressionKind download ExpressionT.ExpressionKind.java

java.lang.Object
  extended byjavax.ide.model.java.source.tree.ExpressionT.ExpressionKind
Enclosing class:
ExpressionT

public static final class ExpressionT.ExpressionKind
extends java.lang.Object


Field Summary
static int EXPR_ADD
          Arithmetic addition or string concatenation.
static int EXPR_ADDASG
          Arithmetic addition or string concatenation assignment.
static int EXPR_AND
          Conditional (logical) AND.
static int EXPR_ANNOTATION
          Annotation expression.
static int EXPR_ARRAYCONST
          An array constant.
static int EXPR_ASG
          Assignment.
static int EXPR_base
           
static int EXPR_BITAND
          Bitwise AND.
static int EXPR_BITANDASG
          Bitwise AND assignment.
static int EXPR_BITNOT
          Bitwise NOT (negation or complement).
static int EXPR_BITOR
          Bitwise OR.
static int EXPR_BITORASG
          Bitwise OR assignment.
static int EXPR_BITXOR
          Bitwise XOR.
static int EXPR_BITXORASG
          Bitwise XOR assignment.
static int EXPR_CLASS_LITERAL
          A class literal.
private static java.lang.Class[] EXPR_classes
           
static int EXPR_COND
          Conditional operator (?:).
static int EXPR_DEREF
          Array dereference.
static int EXPR_DIV
          Arithmetic division.
static int EXPR_DIVASG
          Arithmetic division assignment.
static int EXPR_DOT
          Dot dereference.
static int EXPR_EQ
          Equal.
static int EXPR_GE
          Greater than or equal to.
static int EXPR_GT
          Greater than.
static int EXPR_IDENTIFIER
          Simple name.
static int EXPR_INSTANCEOF
          Instanceof.
static int EXPR_invalid
           
static int EXPR_INVOKE
          Method invocation.
static int EXPR_LE
          Less than.
static int EXPR_LIST
          A list of operands.
static int EXPR_LITERAL
          Lexical literal.
static int EXPR_LSH
          Bitwise left shift.
static int EXPR_LSHASG
          Bitwise left shift assignment.
static int EXPR_LT
          Less than or equal to.
static int EXPR_max
           
static int EXPR_MINUS
          Arithmetic subtraction.
static int EXPR_MINUSASG
          Arithmetic subtraction assignment.
static int EXPR_MOD
          Arithmetic remainder (modulus).
static int EXPR_MODASG
          Arithmetic remainder (modulus) assignment.
static int EXPR_MUL
          Arithmetic multiplication.
static int EXPR_MULASG
          Arithmetic multiplication assignment.
private static java.lang.String[] EXPR_names
           
static int EXPR_NEGATIVE
          Arithmetic negative prefix.
static int EXPR_NEWARRAY
          Array creator.
static int EXPR_NEWOBJECT
          Class creator.
static int EXPR_NOT
          Logical NOT (negation or complement).
static int EXPR_NOTEQ
          Not-equal.
static int EXPR_OR
          Conditional (logical) OR.
static int EXPR_POSITIVE
          Arithmetic positive prefix.
static int EXPR_POSTDEC
          Decrement postfix.
static int EXPR_POSTINC
          Increment postfix.
static int EXPR_PREDEC
          Decrement prefix.
static int EXPR_PREINC
          Increment prefix.
static int EXPR_QUALIFIED_SUPER
          Qualified super.
static int EXPR_QUALIFIED_THIS
          Qualified this.
static int EXPR_RSH
          Bitwise signed right shift.
static int EXPR_RSHASG
          Bitwise signed right shift assignment.
static int EXPR_TYPE
          Type expression.
static int EXPR_TYPECAST
          Typecast.
static int EXPR_URSH
          Bitwise unsigned right shift.
static int EXPR_URSHASG
          Bitwise unsigned right shift assignment.
static int EXPR_WRAPPER
          Nested expression (in parentheses or brackets).
private  java.lang.Class exprClass
           
private  java.lang.String name
           
private  int ordinal
           
private static java.util.Map values
           
 
Constructor Summary
private ExpressionT.ExpressionKind(int ordinal, java.lang.String name, java.lang.Class c)
           
 
Method Summary
 int compareTo(ExpressionT.ExpressionKind other)
           
 boolean equals(java.lang.Object other)
          Determine whether this Object is semantically equal to another Object.
 java.lang.Class getDeclaringClass()
           
 java.lang.Class getExpressionClass()
           
 int hashCode()
          Get a value that represents this Object, as uniquely as possible within the confines of an int.
 java.lang.String name()
           
 int ordinal()
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
static ExpressionT.ExpressionKind valueOf(java.lang.Class ignored, java.lang.String name)
           
static ExpressionT.ExpressionKind valueOf(int ordinal)
           
static ExpressionT.ExpressionKind[] values()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

EXPR_invalid

public static final int EXPR_invalid
See Also:
Constant Field Values

EXPR_base

public static final int EXPR_base
See Also:
Constant Field Values

EXPR_ADD

public static final int EXPR_ADD
Arithmetic addition or string concatenation. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_ADDASG

public static final int EXPR_ADDASG
Arithmetic addition or string concatenation assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_AND

public static final int EXPR_AND
Conditional (logical) AND. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_ANNOTATION

public static final int EXPR_ANNOTATION
Annotation expression. 0 operands. AnnotationExpressionT.class.

See Also:
Constant Field Values

EXPR_ARRAYCONST

public static final int EXPR_ARRAYCONST
An array constant. 0+ operands. This is LIST rather than LITERAL because this is not a lexer literal. ListExpressionT.class.

See Also:
Constant Field Values

EXPR_ASG

public static final int EXPR_ASG
Assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_BITAND

public static final int EXPR_BITAND
Bitwise AND. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_BITANDASG

public static final int EXPR_BITANDASG
Bitwise AND assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_BITNOT

public static final int EXPR_BITNOT
Bitwise NOT (negation or complement). 2 operands. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_BITOR

public static final int EXPR_BITOR
Bitwise OR. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_BITORASG

public static final int EXPR_BITORASG
Bitwise OR assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_BITXOR

public static final int EXPR_BITXOR
Bitwise XOR. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_BITXORASG

public static final int EXPR_BITXORASG
Bitwise XOR assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_CLASS_LITERAL

public static final int EXPR_CLASS_LITERAL
A class literal. 1 operand. Operand is an TYPE. Despite the name, this is not a lexical literal. We call it a class literal because that's what the JLS calls it. You ask them. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_COND

public static final int EXPR_COND
Conditional operator (?:). 3 operands. QuestionExpressionT.class.

See Also:
Constant Field Values

EXPR_DEREF

public static final int EXPR_DEREF
Array dereference. 2 operands. 1st is the expression lhs. 2nd is LIST with WRAPPER operand per array dereference. Operands are WRAPPER in order to record the offsets of the brackets. ArrayAccessExpressionT.class.

See Also:
Constant Field Values

EXPR_DIV

public static final int EXPR_DIV
Arithmetic division. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_DIVASG

public static final int EXPR_DIVASG
Arithmetic division assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_DOT

public static final int EXPR_DOT
Dot dereference. 1 operand. DotExpressionT.class.

See Also:
Constant Field Values

EXPR_EQ

public static final int EXPR_EQ
Equal. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_GE

public static final int EXPR_GE
Greater than or equal to. 2 operands InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_GT

public static final int EXPR_GT
Greater than. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_IDENTIFIER

public static final int EXPR_IDENTIFIER
Simple name. 0 operands. IdentifierExpressionT.class.

See Also:
Constant Field Values

EXPR_INSTANCEOF

public static final int EXPR_INSTANCEOF
Instanceof. 2 operands. 2nd is an TYPE. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_INVOKE

public static final int EXPR_INVOKE
Method invocation. 1, 2, or 3 operands. If 1, the operand is the LIST arguments. If 2, the 1st operand is the lhs and the 2nd is the LIST arguments. If 3, the 1st operand is the lhs, the 2nd is the type arguments, and the 3rd is the LIST arguments. In * all cases, the last operand is the LIST arguments. MethodCallExpressionT.class.

See Also:
Constant Field Values

EXPR_LE

public static final int EXPR_LE
Less than. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_LIST

public static final int EXPR_LIST
A list of operands. 0+ operands. ListExpressionT.class.

See Also:
Constant Field Values

EXPR_LITERAL

public static final int EXPR_LITERAL
Lexical literal. 0 operands. LiteralExpressionT.class.

See Also:
Constant Field Values

EXPR_LSH

public static final int EXPR_LSH
Bitwise left shift. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_LSHASG

public static final int EXPR_LSHASG
Bitwise left shift assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_LT

public static final int EXPR_LT
Less than or equal to. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_MINUS

public static final int EXPR_MINUS
Arithmetic subtraction. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_MINUSASG

public static final int EXPR_MINUSASG
Arithmetic subtraction assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_MOD

public static final int EXPR_MOD
Arithmetic remainder (modulus). 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_MODASG

public static final int EXPR_MODASG
Arithmetic remainder (modulus) assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_MUL

public static final int EXPR_MUL
Arithmetic multiplication. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_MULASG

public static final int EXPR_MULASG
Arithmetic multiplication assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_NEGATIVE

public static final int EXPR_NEGATIVE
Arithmetic negative prefix. 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_NEWARRAY

public static final int EXPR_NEWARRAY
Array creator. 1 operand. If operand is an LIST, then this is an uninitialized array creator. Else the operand is an ARRAYCONST and this is an initialized array creator. The type involves a special getter. NewArrayExpressionT.class.

See Also:
Constant Field Values

EXPR_NEWOBJECT

public static final int EXPR_NEWOBJECT
Class creator. 1 or 2 operands. If 2, the 1st operand is the lhs of an inner class creator. The last operand is an LIST for the arguments. The type involves a special getter. The class body involves a special getter. NewClassExpressionT.class.

See Also:
Constant Field Values

EXPR_NOT

public static final int EXPR_NOT
Logical NOT (negation or complement). 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_NOTEQ

public static final int EXPR_NOTEQ
Not-equal. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_OR

public static final int EXPR_OR
Conditional (logical) OR. 2+ operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_POSITIVE

public static final int EXPR_POSITIVE
Arithmetic positive prefix. 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_POSTDEC

public static final int EXPR_POSTDEC
Decrement postfix. 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_POSTINC

public static final int EXPR_POSTINC
Increment postfix. 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_PREDEC

public static final int EXPR_PREDEC
Decrement prefix. 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_PREINC

public static final int EXPR_PREINC
Increment prefix. 1 operand. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_QUALIFIED_SUPER

public static final int EXPR_QUALIFIED_SUPER
Qualified super. 1 operand. Operand is an TYPE. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_QUALIFIED_THIS

public static final int EXPR_QUALIFIED_THIS
Qualified this. 1 operand. Operand is an TYPE. UnaryExpressionT.class.

See Also:
Constant Field Values

EXPR_RSH

public static final int EXPR_RSH
Bitwise signed right shift. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_RSHASG

public static final int EXPR_RSHASG
Bitwise signed right shift assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_TYPE

public static final int EXPR_TYPE
Type expression. 0 operands. TypeExpressionT.class.

See Also:
Constant Field Values

EXPR_TYPECAST

public static final int EXPR_TYPECAST
Typecast. 2 operands. 1st is an TYPE. TypecastExpressionT.class.

See Also:
Constant Field Values

EXPR_URSH

public static final int EXPR_URSH
Bitwise unsigned right shift. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_URSHASG

public static final int EXPR_URSHASG
Bitwise unsigned right shift assignment. 2 operands. InfixExpressionT.class.

See Also:
Constant Field Values

EXPR_WRAPPER

public static final int EXPR_WRAPPER
Nested expression (in parentheses or brackets). 1 operand. WrapperExpressionT.class.

See Also:
Constant Field Values

EXPR_max

public static final int EXPR_max
See Also:
Constant Field Values

ordinal

private final int ordinal

name

private final java.lang.String name

exprClass

private final java.lang.Class exprClass

values

private static final java.util.Map values

EXPR_names

private static final java.lang.String[] EXPR_names

EXPR_classes

private static final java.lang.Class[] EXPR_classes
Constructor Detail

ExpressionT.ExpressionKind

private ExpressionT.ExpressionKind(int ordinal,
                                   java.lang.String name,
                                   java.lang.Class c)
Method Detail

getExpressionClass

public java.lang.Class getExpressionClass()

name

public java.lang.String name()

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).


ordinal

public int ordinal()

hashCode

public int hashCode()
Description copied from class: java.lang.Object
Get a value that represents this Object, as uniquely as possible within the confines of an int.

There are some requirements on this method which subclasses must follow:

  • Semantic equality implies identical hashcodes. In other words, if a.equals(b) is true, then a.hashCode() == b.hashCode() must be as well. However, the reverse is not necessarily true, and two objects may have the same hashcode without being equal.
  • It must be consistent. Whichever value o.hashCode() returns on the first invocation must be the value returned on all later invocations as long as the object exists. Notice, however, that the result of hashCode may change between separate executions of a Virtual Machine, because it is not invoked on the same object.

Notice that since hashCode is used in java.util.Hashtable and other hashing classes, a poor implementation will degrade the performance of hashing (so don't blindly implement it as returning a constant!). Also, if calculating the hash is time-consuming, a class may consider caching the results.

The default implementation returns System.identityHashCode(this)


compareTo

public int compareTo(ExpressionT.ExpressionKind other)

equals

public boolean equals(java.lang.Object other)
Description copied from class: java.lang.Object
Determine whether this Object is semantically equal to another Object.

There are some fairly strict requirements on this method which subclasses must follow:

  • It must be transitive. If a.equals(b) and b.equals(c), then a.equals(c) must be true as well.
  • It must be symmetric. a.equals(b) and b.equals(a) must have the same value.
  • It must be reflexive. a.equals(a) must always be true.
  • It must be consistent. Whichever value a.equals(b) returns on the first invocation must be the value returned on all later invocations.
  • a.equals(null) must be false.
  • It must be consistent with hashCode(). That is, a.equals(b) must imply a.hashCode() == b.hashCode(). The reverse is not true; two objects that are not equal may have the same hashcode, but that has the potential to harm hashing performance.

This is typically overridden to throw a java.lang.ClassCastException if the argument is not comparable to the class performing the comparison, but that is not a requirement. It is legal for a.equals(b) to be true even though a.getClass() != b.getClass(). Also, it is typical to never cause a java.lang.NullPointerException.

In general, the Collections API (java.util) use the equals method rather than the == operator to compare objects. However, java.util.IdentityHashMap is an exception to this rule, for its own good reasons.

The default implementation returns this == o.


getDeclaringClass

public java.lang.Class getDeclaringClass()

valueOf

public static ExpressionT.ExpressionKind valueOf(int ordinal)

valueOf

public static ExpressionT.ExpressionKind valueOf(java.lang.Class ignored,
                                                 java.lang.String name)

values

public static ExpressionT.ExpressionKind[] values()