| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines integer constants used for indentifying the
kinds of expressions.
| Field Summary | |
final static int | ACCESSAn expression of accessing an 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 an array's element. |
final static int | ARRAY_INITIALIZERArray initializer. |
final static int | ASSIGNAssignment expression. |
final static int | ASSIGN_ADDRESSVB.NET special expression for assign statement: Expression = AddressOf Expression. |
final static int | ASSIGN_BITANDAssignment &= expression. |
final static int | ASSIGN_BITORAssignment |= expression. |
final static int | ASSIGN_BITXORAssignment ^= expression. |
final static int | ASSIGN_CONCATVB.NET special expression for assign statement: Expression = AddressOf Expression. |
final static int | ASSIGN_DIVIDEAssignment /= expression. |
final static int | ASSIGN_DIVIDE_INTVB.NET special expression for assign statement: Expression \= Expression. |
final static int | ASSIGN_MINUSAssignment -= expression. |
final static int | ASSIGN_MULTIPLYAssignment *= expression. |
final static int | ASSIGN_PLUSAssignment += expression. |
final static int | ASSIGN_POWERVB.NET special expression for assign statement: Expression ^= 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 | CASE_TOVB.NET special expression for case statement: Expression To Expression. |
final static int | CHECKEDC# specific expression. |
final static int | COMMA_EXPRESSIONAn expression of using the comma sign. |
final static int | CONCATVB.NET concatenation operator: Expression & Expression. |
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_IDAn expression: 'operator' type-specifier-seq *opt Ex: operator int * |
final static int | DELETE_EXPDelete expression. |
final static int | DEPRECATED_KINDDeprecated. |
final static int | DICTIONARYVB.NET expression of accessing a dictionary: Expression !Expression. |
final static int | DIRECT_INITDeprecated. to be removed in version 6.0 release, use DIRECT_INIT_VARIABLE or DIRECT_INIT_BASE_OR_MEMBER |
final static int | DIRECT_INIT_BASE_OR_MEMBERDirect initialization of base classes and memebers in constructor in the form 'Class2::Class2(int param1): BaseClass(param1), myMember(0){...}'. |
final static int | DIRECT_INIT_VARIABLEDirect initializer of variables in the form of 'MyClass myclass(6, "some_string"); int iVar(4);'. |
final static int | DIVIDEAn expression with division operator / . |
final static int | DIVIDE_INTEGERVB.NET integer division operator: Expression \ Expression. |
final static int | DYNAMIC_CASTDynamic cast expression. |
final static int | FIELD_ACCESSDeprecated. |
final static int | FUNCTION_CALLAn expression of a function call. |
final static int | GET_PTRDeprecated. |
final static int | GET_TYPEVB.NET get type expression: GetType( Expression ). |
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 | ISVB.NET is operator: Expression Is Expression. |
final static int | LIKEVB.NET like operator: Expression Like Expression. |
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_GTAn expression: '<...>' |
final static int | MEVB.NET me expression: Me. |
final static int | MEMBER_ACCESSDeprecated. |
final static int | METHOD_ACCESSDeprecated. |
final static int | MINUSAn expression with subtraction 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 | NEWDeprecated. |
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_IDAn 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 element data by pointer ( ->). |
final static int | POINTER_ACCESS_REFAn expression of accessing element data by pointer reference ( ->*). |
final static int | POINTER_TO_MEMBERAn expression of accessing an element's member by pointer '.*' |
final static int | POSTDECREMENTAn expression with postdecrement -- operator. |
final static int | POSTINCREMENTAn expression with postincrement ++ operator. |
final static int | POWERVB.NET power operator: Expression ^ Expression. |
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 to). |
final static int | REL_GTAn expression with relational operator > (greater than). |
final static int | REL_INVB.NET special expression for for each statement: Expression In Expression. |
final static int | REL_INSTANCEOFAn expression with relational operator instanceof (Java, C#, VB.NET only). |
final static int | REL_LEAn expression with relational operator <= (less than or equal to). |
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 an expression. |
final static int | STATIC_CASTStatic cast expression. |
final static int | TEMPLATE_IDA postfix expression: ' template-name <arg-list>'. |
final static int | THROWDeprecated. |
final static int | TYPEAn expression containing a data type. |
final static int | TYPE_CASTType casting expression. |
final static int | TYPEIDAn expression ( Grammar ): 'typeid ( expression)' Ex: typeid ( int ); |
final static int | UNCHECKEDC# specific expression. |
| Field Detail |
public final static int ACCESS
.
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];
myArray[2] is an 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.
myIntVariable=10;
myIntVariable=10 is an expression of this kind.public final static int ASSIGN_ADDRESS
= AddressOf Expression.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_CONCAT
= AddressOf Expression.public final static int ASSIGN_DIVIDE
myIntVariable/=10;
myIntVariable/=10 is an expression of this kind.public final static int ASSIGN_DIVIDE_INT
\= Expression.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_POWER
^= Expression.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
and in Delphi. For example:
int a=5;
int b=5;
int c=a&b;
a&b has this kind of expression.public final static int BITWISE_NOT
~ in Java and C++ or not operator in Delphi.
int i=3;
int j=~i;
j~i has this kind of expression.public final static int BITWISE_OR
| in Java and C++ or
or in Delphi. For example:
int a=5;
int b=5;
int c=a|b;
a|b has this kind of expression.public final static int BITWISE_XOR
^ in Java and C++ or
xor in Delphi. For example:
int a=5;
int b=5;
int c=a^b;
a^b has this kind of expression.public final static int CASE_TO
To Expression.public final static int CHECKED
public final static int COMMA_EXPRESSION
exp1, exp2, exp3.public final static int CONCAT
& Expression.public final static int CONDITIONAL
if-else
myInt = (someBooleanFlag) ? 5 : 4;
public final static int CONST_CAST
public final static int CONSTANT
int j=10;
j method SciVariable.getInitialValue will return an
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 DICTIONARY
!Expression.public final static int DIRECT_INIT
public final static int DIRECT_INIT_BASE_OR_MEMBER
public final static int DIRECT_INIT_VARIABLE
public final static int DIVIDE
/ .
int i=10;
int k=i/2;
i/2 has this kind of expression.public final static int DIVIDE_INTEGER
\ Expression.public final static int DYNAMIC_CAST
public final static int FIELD_ACCESS
public final static int FUNCTION_CALL
someObj.someMethod();
someObj.someMethod() is an expression of this kind.
Notes for VB.NET language:
public final static int GET_PTR
public final static int GET_TYPE
GetType( Expression ).public final static int INDIRECTION
*
*iPtr = 4 ; // assign the address of i to the pointer
public final static int IS
Is Expression.public final static int LIKE
Like Expression.public final static int LOGICAL_AND
&& in Java and C++, or and,
if ((someBooleanFlag1)&&(someBooleanFlag2)) {
...
}
(someBooleanFlag1)&&(someBooleanFlag2) has this kind of expression.public final static int LOGICAL_NOT
! in Java and C++, or not
if (!someBooleanFlag) {
...
}
!someBooleanFlag has this kind of expression.public final static int LOGICAL_OR
|| in Java and C++, or or,
if ((someBooleanFlag1)||(someBooleanFlag2)) {
...
}
(someBooleanFlag1)||(someBooleanFlag2) has this kind of expression.public final static int LOGICAL_XOR
^ in Java and C++, or xor in Delphi.
if ((someBooleanFlag1)xor(someBooleanFlag2)) then begin end;
(someBooleanFlag1)xor(someBooleanFlag2) has this kind of expression.public final static int LT_GT
public final static int ME
Me.public final static int MEMBER_ACCESS
public final static int METHOD_ACCESS
public final static int MINUS
- .
int i=10;
int k=i-2;
i-2 has this kind of expression.public final static int MULTIPLY
* .
int i=10;
int k=i*2;
i*2 has this kind of expression.public final static int N_A
public final static int NEW
public final static int NEW_ARRAY
new operator.
myIntArray = new int[12];
new int[12] is an expression of this kind.public final static int NEW_EXP
public final static int NEW_INSTANCE
new operator.
CoolButton myCoolButton = new CoolButton("Agent007");
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;
5 and
(2+3).public final static int PLUS
+ .
int i=10;
int k=i+2;
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.
int i=3;
int j=5 * i--; //j is 15, i is 2
i-- has this kind of expression.public final static int POSTINCREMENT
++ operator. For Java and C++ only.
int i=3;
int j=5 * i++; //j is 15, i is 4
i++ has this kind of expression.public final static int POWER
^ Expression.public final static int PREDECREMENT
-- operator. For Java and C++ only.
int i=3;
int j=5 * --i; //j is 10, i is 2
--i has this kind of expression.public final static int PREINCREMENT
++ operator. For Java and C++ only.
int i=3;
int j=5 * ++i; //j is 20, i is 4
++i has this kind of expression.public final static int REFERENCE
runSomeMethod();
runSomeMethod() is an expression of a FUNCTION_CALL kind.
getFunction method applied to this expression will return an expression
runSomeMethod of a REFERENCE kind .public final static int REINTERPRET_CAST
public final static int REL_EQUAL
== in Java and C++ or = in Delphi.
if (5==4) {
...
}
5==4 has this kind of expression.public final static int REL_GE
>= (greater than or equal to).
if (5>=4) {
...
}
5>=4 has this kind of expression.public final static int REL_GT
> (greater than).
if (5>4) {
...
}
5>4 has this kind of expression.public final static int REL_IN
In Expression.public final static int REL_INSTANCEOF
instanceof (Java, C#, VB.NET only).
if (someObj1 instanceof someObj2) {
...
}
someObj1 instanceof someObj2 has this kind of expression.
Since Together 6.0 this kind is used to represent TypeOf ... Is ... expression in VB.NET and
... is ... expression in C# as well.
public final static int REL_LE
<= (less than or equal to).
if (5<=4) {
...
}
5<=4 has this kind of expression.public final static int REL_LT
< (less than).
if (5<4) {
...
}
5<4 has this kind of expression.public final static int REL_NOTEQUAL
!= in Java and C++ or <> in Delphi.
if (5!=4) {
...
}
5!=4 has this kind of expression.public final static int REMAINDER
% in Java and C++, or mod in Delphi.
int i=10;
int k=i%2;
i%2 has this kind of expression.public final static int SHIFT_LEFT
<< in Java and C++ or
shl in Delhpi.
int i=10;
int k=i<<2;
i<<2 has this kind of expression.public final static int SHIFT_RIGHT
>> in Java and C++ or
shr in Delhpi.
int i=10;
int k=i>>2;
i>>2 has this kind of expression.public final static int SHIFT_URIGHT
>>> (Java only).
int i=10;
int k=i>>>2;
i>>>2 has this kind of expression.public final static int SIGN_MINUS
- .
int i=10;
int k=-i;
k=-i has this kind of expression.public final static int SIGN_PLUS
+ .
int i=10;
int k=+i;
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
public final static int TYPE
char c;
c=(char)System.in.read();
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, whose kind is TYPE_CAST.public final static int TYPEID
Ex: typeid ( int );
public final static int UNCHECKED
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||