| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Defines integer constants used for indentification the kinds of expression.
| Field Summary | |
final static int | ACCESSAn expression of accessing element's data using . |
final static int | ADDRESSOFAn expression of giving the memory address in C++ using the address-of operator (&). |
final static int | ARRAY_ACCESSAn expression of accessing array's element. |
final static int | ARRAY_INITIALIZER* Array initializer. |
final static int | ASSIGNAssignment expression. |
final static int | ASSIGN_BITANDAssignment &= expression. |
final static int | ASSIGN_BITORAssignment |= expression. |
final static int | ASSIGN_BITXORAssignment ^= expression. |
final static int | ASSIGN_DIVIDEAssignment /= expression. |
final static int | ASSIGN_MINUSAssignment -= expression. |
final static int | ASSIGN_MULTIPLYAssignment *= expression. |
final static int | ASSIGN_PLUSAssignment += expression. |
final static int | ASSIGN_REMAINDERAssignment %= expression. |
final static int | ASSIGN_SHIFTLAssignment <<= expression. |
final static int | ASSIGN_SHIFTRAssignment >>= expression. |
final static int | ASSIGN_SHIFTURAssignment >>>= expression. |
final static int | BITWISE_ANDAn expression with bitwise operator & in Java and C++ or
bitwise operator and in Delphi. |
final static int | BITWISE_NOTAn expression with bitwise NOT operator ~ in Java and C++ or not operator in Delphi. |
final static int | BITWISE_ORAn expression with bitwise operator | in Java and C++ or
bitwise operator or in Delphi. |
final static int | BITWISE_XORAn expression with bitwise operator ^ in Java and C++ or
bitwise operator xor in Delphi. |
final static int | COMMA_EXPRESSIONAn expression of using the comma sign. |
final static int | CONDITIONALThe conditional expression is C++ and Java shorthand for a dual-alternative simple if-else
statement. |
final static int | CONST_CASTConst cast expression. |
final static int | CONSTANTAn expression consisting of a constant. |
final static int | CONV_FUNCTION_IDIt's such expression: 'operator' type-specifier-seq *opt Ex: operator int * |
final static int | DELETE_EXPDelete expression. |
final static int | DEPRECATED_KIND |
final static int | DIVIDEAn expression with division operator / . |
final static int | DYNAMIC_CASTDynamic cast expression. |
final static int | FUNCTION_CALLAn expression of a function call. |
final static int | INDIRECTIONAn expression of declaring or derefencing a pointer in C++, using a *
operator, called the indirection (or dereferencing) operator. |
final static int | LOGICAL_ANDAn expression with logical operator && in Java and C++, or and,
in Delphi. |
final static int | LOGICAL_NOTAn expression with logical NOT operator ! in Java and C++, or not
operator in Delphi. |
final static int | LOGICAL_ORAn expression with logical operator || in Java and C++, or or,
in Delphi. |
final static int | LOGICAL_XORAn expression with logical operator ^ in Java and C++, or xor in Delphi. |
final static int | LT_GTIt's such expression : '<...>' |
final static int | MINUSAn expression with substraction operator - . |
final static int | MULTIPLYAn expression with multiplication operator * . |
final static int | N_AExpression has this kind if it doesn't fit into other kinds of expressions defined in this interface (cannot be recognized properly in the source code). |
final static int | NEW_ARRAYAn expression of creating a new array using new operator. |
final static int | NEW_EXPNew expression . |
final static int | NEW_INSTANCEAn expression of creating a new object instance using new operator. |
final static int | NEW_TYPE_IDIt's an operand of expression: '::opt new new-placementopt new-type-id new-initializeropt'. |
final static int | PARENTHESESAn expression with parentheses (). |
final static int | PLUSAn expression with addition operator + . |
final static int | POINTER_ACCESSAn expression of accessing elements' data by pointer ( ->). |
final static int | POINTER_ACCESS_REFAn expression of accessing elements' data by pointer reference ( ->*). |
final static int | POINTER_TO_MEMBERAn expression of accessing element's member by pointer '.*'. |
final static int | POSTDECREMENTAn expression with postdecrement -- operator. |
final static int | POSTINCREMENTAn expression with postincrement ++ operator. |
final static int | PREDECREMENTAn expression with predecrement -- operator. |
final static int | PREINCREMENTAn expression with preincrement ++ operator. |
final static int | REFERENCEAn expression consisting of a reference to some object. |
final static int | REINTERPRET_CASTReinterpret cast expression. |
final static int | REL_EQUALAn expression with equality relational operator == in Java and C++ or = in Delphi. |
final static int | REL_GEAn expression with relational operator >= (greater than or equal). |
final static int | REL_GTAn expression with relational operator > (greater than). |
final static int | REL_INSTANCEOFAn expression with relational operator instanceof (Java only). |
final static int | REL_LEAn expression with relational operator <= (less than or equal). |
final static int | REL_LTAn expression with relational operator < (less than). |
final static int | REL_NOTEQUALAn expression with non-equality relational operator != in Java and C++ or <> in Delphi. |
final static int | REMAINDERAn expression with remainder operator % in Java and C++, or mod in Delphi. |
final static int | SHIFT_LEFTAn expression with bitwise shift operator << in Java and C++ or
shl in Delhpi. |
final static int | SHIFT_RIGHTAn expression with bitwise shift operator >> in Java and C++ or
shr in Delhpi. |
final static int | SHIFT_URIGHTAn expression with bitwise shift operator >>> (Java only). |
final static int | SIGN_MINUSAn expression with unary minus operators - . |
final static int | SIGN_PLUSAn expression with unary plus operator + . |
final static int | SIZEOFAn expression of taking the size of expression. |
final static int | STATIC_CASTStatic cast expression. |
final static int | TEMPLATE_IDIt's a postfix expression : ' template-name <arg-list>'. |
final static int | THROWAn expression of throwing an exception. |
final static int | TYPEAn expression containing a data type. |
final static int | TYPE_CASTType casting expression. |
final static int | TYPEIDIt's expression ( Grammar ): 'typeid ( expression)' Ex: typeid ( int ); |
| Field Detail |
public final static int ACCESS
..
For example:
int i=someObj.someInt;public final static int ADDRESSOF
int *iPtr ; // declare a pointer to an integer type
int i = 2;
iPtr = &i ; // assign the address of i to the pointer
public final static int ARRAY_ACCESS
int i=myArray[2];
Here, myArray[2] is expression of this kind.public final static int ARRAY_INITIALIZER
int a[] = { 1, 2, 3 };public final static int ASSIGN
= in C++ and Java, := in Delphi.
For example, in the following lines of code:
myIntVariable=10;
myIntVariable=10 is an expression of this kind.public final static int ASSIGN_BITAND
myIntVariable&=10;
myIntVariable&=10 is an expression of this kind.public final static int ASSIGN_BITOR
myIntVariable|=10;
myIntVariable|=10 is an expression of this kind.public final static int ASSIGN_BITXOR
myIntVariable^=10;
myIntVariable^=10 is an expression of this kind.public final static int ASSIGN_DIVIDE
myIntVariable/=10;
myIntVariable/=10 is an expression of this kind.public final static int ASSIGN_MINUS
myIntVariable-=10;
myIntVariable-=10 is an expression of this kind.public final static int ASSIGN_MULTIPLY
myIntVariable*=10;
myIntVariable*=10 is an expression of this kind.public final static int ASSIGN_PLUS
myIntVariable+=10;
myIntVariable+=10 is an expression of this kind.public final static int ASSIGN_REMAINDER
myIntVariable%=10;
myIntVariable%=10 is an expression of this kind.public final static int ASSIGN_SHIFTL
myIntVariable<<=10;
myIntVariable<<=10 is an expression of this kind.public final static int ASSIGN_SHIFTR
myIntVariable>>=10;
myIntVariable>>=10 is an expression of this kind.public final static int ASSIGN_SHIFTUR
myIntVariable>>>=10;
myIntVariable>>>=10 is an expression of this kind.public final static int BITWISE_AND
& in Java and C++ or
bitwise operator and in Delphi. For example:
int a=5;
int b=5;
int c=a&b;
Here, the expression a&b has this kind of expression.public final static int BITWISE_NOT
~ in Java and C++ or not operator in Delphi.
For example:
int i=3;
int j=~i;
Here, the expression j~i has this kind of expression.public final static int BITWISE_OR
| in Java and C++ or
bitwise operator or in Delphi. For example:
int a=5;
int b=5;
int c=a|b;
Here, the expression a|b has this kind of expression.public final static int BITWISE_XOR
^ in Java and C++ or
bitwise operator xor in Delphi. For example:
int a=5;
int b=5;
int c=a^b;
Here, the expression a^b has this kind of expression.public final static int COMMA_EXPRESSION
exp1, exp2, exp3.public final static int CONDITIONAL
if-else
statement.
For example:
myInt = (someBooleanFlag) ? 5 : 4;
public final static int CONST_CAST
public final static int CONSTANT
int j=10;
for the variable j method SciVariable.getInitialValue will return an
expression of a this kind.public final static int CONV_FUNCTION_ID
Ex: operator int *
public final static int DELETE_EXP
public final static int DEPRECATED_KIND
public final static int DIVIDE
/ .
For example:
int i=10;
int k=i/2;
Here, the expression i/2 has this kind of expression.public final static int DYNAMIC_CAST
public final static int FUNCTION_CALL
someObj.someMethod();
the someObj.someMethod() is an expression of this kind.public final static int INDIRECTION
*
operator, called the indirection (or dereferencing) operator. For example:
*iPtr = 4 ; // assign the address of i to the pointer
public final static int LOGICAL_AND
&& in Java and C++, or and,
in Delphi.
For example:
if ((someBooleanFlag1)&&(someBooleanFlag2)) {
...
}
Here, the expression (someBooleanFlag1)&&(someBooleanFlag2) has this kind of expression.public final static int LOGICAL_NOT
! in Java and C++, or not
operator in Delphi.
For example:
if (!someBooleanFlag) {
...
}
Here, the expression !someBooleanFlag has this kind of expression.public final static int LOGICAL_OR
|| in Java and C++, or or,
in Delphi.
For example:
if ((someBooleanFlag1)||(someBooleanFlag2)) {
...
}
Here, the expression (someBooleanFlag1)||(someBooleanFlag2) has this kind of expression.public final static int LOGICAL_XOR
^ in Java and C++, or xor in Delphi.
For example:
if ((someBooleanFlag1)xor(someBooleanFlag2)) then begin end;
Here, the expression (someBooleanFlag1)xor(someBooleanFlag2) has this kind of expression.public final static int LT_GT
public final static int MINUS
- .
For example:
int i=10;
int k=i-2;
Here, the expression i-2 has this kind of expression.public final static int MULTIPLY
* .
For example:
int i=10;
int k=i*2;
Here, the expression i*2 has this kind of expression.public final static int N_A
public final static int NEW_ARRAY
new operator.
For example:
myIntArray = new int[12];
Here, new int[12] is an expression of this kind.public final static int NEW_EXP
public final static int NEW_INSTANCE
new operator.
For example:
CoolButton myCoolButton = new CoolButton("Agent007");
Here, new CoolButton("Agent007") is an expression of this kind.public final static int NEW_TYPE_ID
public final static int PARENTHESES
(). For example:
i=(2+3)*5;
Here, the multiplicity expression will have two operands: constant expression for 5 and
parentheses expression for (2+3).public final static int PLUS
+ .
For example:
int i=10;
int k=i+2;
Here, the expression i+2 has this kind of expression.public final static int POINTER_ACCESS
->). C++ only.public final static int POINTER_ACCESS_REF
->*). C++ only.public final static int POINTER_TO_MEMBER
public final static int POSTDECREMENT
-- operator. For Java and C++ only.
For example:
int i=3;
int j=5 * i--; //j is 15, i is 2
Here, the expression i-- has this kind of expression.public final static int POSTINCREMENT
++ operator. For Java and C++ only.
For example:
int i=3;
int j=5 * i++; //j is 15, i is 4
Here, the expression i++ has this kind of expression.public final static int PREDECREMENT
-- operator. For Java and C++ only.
For example:
int i=3;
int j=5 * --i; //j is 10, i is 2
Here, the expression --i has this kind of expression.public final static int PREINCREMENT
++ operator. For Java and C++ only.
For example:
int i=3;
int j=5 * ++i; //j is 20, i is 4
Here, the expression ++i has this kind of expression.public final static int REFERENCE
runSomeMethod();
Here, runSomeMethod() is an expression of a FUNCTION_CALL kind.
getFunction method applied to this expression will return an expression
for runSomeMethod of a REFERENCE kind .public final static int REINTERPRET_CAST
public final static int REL_EQUAL
== in Java and C++ or = in Delphi.
For example:
if (5==4) {
...
}
Here, the expression 5==4 has this kind of expression.public final static int REL_GE
>= (greater than or equal).
For example:
if (5>=4) {
...
}
Here, the expression 5>=4 has this kind of expression.public final static int REL_GT
> (greater than).
For example:
if (5>4) {
...
}
Here, the expression 5>4 has this kind of expression.public final static int REL_INSTANCEOF
instanceof (Java only).
For example:
if (someObj1 instanceof someObj2) {
...
}
Here, the expression someObj1 instanceof someObj2 has this kind of expression.public final static int REL_LE
<= (less than or equal).
For example:
if (5<=4) {
...
}
Here, the expression 5<=4 has this kind of expression.public final static int REL_LT
< (less than).
For example:
if (5<4) {
...
}
Here, the expression 5<4 has this kind of expression.public final static int REL_NOTEQUAL
!= in Java and C++ or <> in Delphi.
For example:
if (5!=4) {
...
}
Here, the expression 5!=4 has this kind of expression.public final static int REMAINDER
% in Java and C++, or mod in Delphi.
For example:
int i=10;
int k=i%2;
Here, the expression i%2 has this kind of expression.public final static int SHIFT_LEFT
<< in Java and C++ or
shl in Delhpi.
For example:
int i=10;
int k=i<<2;
Here, the expression i<<2 has this kind of expression.public final static int SHIFT_RIGHT
>> in Java and C++ or
shr in Delhpi.
For example:
int i=10;
int k=i>>2;
Here, the expression i>>2 has this kind of expression.public final static int SHIFT_URIGHT
>>> (Java only).
For example:
int i=10;
int k=i>>>2;
Here, the expression i>>>2 has this kind of expression.public final static int SIGN_MINUS
- .
For example:
int i=10;
int k=-i;
Here, the expression k=-i has this kind of expression.public final static int SIGN_PLUS
+ .
For example:
int i=10;
int k=+i;
Here, the expression k=+i has this kind of expression.public final static int SIZEOF
public final static int STATIC_CAST
public final static int TEMPLATE_ID
public final static int THROW
throw new MyException1( );public final static int TYPE
char c;
c=(char)System.in.read();
Here, an expression for char (in the second line) has this kind of expression.public final static int TYPE_CAST
typeOneObject=(TypeOne)typeTwoObject;
typeOneObject=(TypeOne)typeTwoObject is an expression of ASSIGN kind. Method
SciAssignmentExpression.getRValue will return an expression for
(TypeOne)typeTwoObject which kind is TYPE_CAST.public final static int TYPEID
Ex: typeid ( int );
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||