| Modifier and Type | Field and Description |
|---|---|
Constant |
Expression.constant |
Constant |
ConditionalExpression.optimizedBooleanConstant |
Constant |
UnaryExpression.optimizedBooleanConstant |
Constant |
BinaryExpression.optimizedBooleanConstant |
Constant |
ConditionalExpression.optimizedIfFalseConstant |
Constant |
ConditionalExpression.optimizedIfTrueConstant |
| Modifier and Type | Method and Description |
|---|---|
Constant |
CastExpression.optimizedBooleanConstant() |
Constant |
ConditionalExpression.optimizedBooleanConstant() |
Constant |
UnaryExpression.optimizedBooleanConstant() |
Constant |
QualifiedNameReference.optimizedBooleanConstant() |
Constant |
FieldReference.optimizedBooleanConstant() |
Constant |
BinaryExpression.optimizedBooleanConstant() |
Constant |
Expression.optimizedBooleanConstant()
Constant usable for bytecode pattern optimizations, but cannot be inlined
since it is not strictly equivalent to the definition of constant expressions.
|
Constant |
Statement.resolveCase(BlockScope scope,
TypeBinding testType,
SwitchStatement switchStatement)
Returns case constant associated to this statement (NotAConstant if none)
|
Constant |
CaseStatement.resolveCase(BlockScope scope,
TypeBinding switchExpressionType,
SwitchStatement switchStatement)
Returns the constant intValue or ordinal for enum constants.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
Expression.isConstantValueRepresentable(Constant constant,
int constantTypeID,
int targetTypeID) |
| Modifier and Type | Field and Description |
|---|---|
protected Constant |
FieldInfo.constant |
| Modifier and Type | Method and Description |
|---|---|
Constant |
FieldInfo.getConstant()
Return the constant of the field.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CodeStream.generateConstant(Constant constant,
int implicitConversionCode) |
| Modifier and Type | Method and Description |
|---|---|
Constant |
IBinaryField.getConstant() |
| Modifier and Type | Class and Description |
|---|---|
class |
BooleanConstant |
class |
ByteConstant |
class |
CharConstant |
class |
DoubleConstant |
class |
FloatConstant |
class |
IntConstant |
class |
LongConstant |
class |
ShortConstant |
class |
StringConstant |
| Modifier and Type | Field and Description |
|---|---|
static Constant |
Constant.NotAConstant |
| Modifier and Type | Method and Description |
|---|---|
Constant |
Constant.castTo(int conversionToTargetType) |
static Constant |
Constant.computeConstantOperation(Constant cst,
int id,
int operator) |
static Constant |
Constant.computeConstantOperation(Constant left,
int leftId,
int operator,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationAND_AND(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationAND(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationDIVIDE(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationEQUAL_EQUAL(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationGREATER_EQUAL(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationGREATER(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationLEFT_SHIFT(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationLESS_EQUAL(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationLESS(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationMINUS(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationMULTIPLY(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationOR_OR(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationOR(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationPLUS(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationREMAINDER(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationRIGHT_SHIFT(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationUNSIGNED_RIGHT_SHIFT(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationXOR(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
BooleanConstant.fromValue(boolean value) |
static Constant |
ByteConstant.fromValue(byte value) |
static Constant |
CharConstant.fromValue(char value) |
static Constant |
DoubleConstant.fromValue(double value) |
static Constant |
FloatConstant.fromValue(float value) |
static Constant |
IntConstant.fromValue(int value) |
static Constant |
LongConstant.fromValue(long value) |
static Constant |
ShortConstant.fromValue(short value) |
static Constant |
StringConstant.fromValue(String value) |
| Modifier and Type | Method and Description |
|---|---|
static Constant |
Constant.computeConstantOperation(Constant cst,
int id,
int operator) |
static Constant |
Constant.computeConstantOperation(Constant left,
int leftId,
int operator,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationAND_AND(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationAND(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationDIVIDE(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationEQUAL_EQUAL(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationGREATER_EQUAL(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationGREATER(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationLEFT_SHIFT(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationLESS_EQUAL(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationLESS(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationMINUS(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationMULTIPLY(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationOR_OR(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationOR(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationPLUS(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationREMAINDER(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationRIGHT_SHIFT(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationUNSIGNED_RIGHT_SHIFT(Constant left,
int leftId,
Constant right,
int rightId) |
static Constant |
Constant.computeConstantOperationXOR(Constant left,
int leftId,
Constant right,
int rightId) |
boolean |
Constant.hasSameValue(Constant otherConstant)
Returns true if both constants have the same type and the same actual value
|
| Modifier and Type | Field and Description |
|---|---|
protected Constant |
VariableBinding.constant |
| Modifier and Type | Method and Description |
|---|---|
Constant |
ParameterizedFieldBinding.constant() |
Constant |
FieldBinding.constant() |
Constant |
VariableBinding.constant() |
| Modifier and Type | Method and Description |
|---|---|
void |
ParameterizedFieldBinding.setConstant(Constant constant) |
void |
VariableBinding.setConstant(Constant constant) |
| Constructor and Description |
|---|
FieldBinding(char[] name,
TypeBinding type,
int modifiers,
ReferenceBinding declaringClass,
Constant constant) |
SyntheticFieldBinding(char[] name,
TypeBinding type,
int modifiers,
ReferenceBinding declaringClass,
Constant constant,
int index) |
VariableBinding(char[] name,
TypeBinding type,
int modifiers,
Constant constant) |
Copyright © 2015. All rights reserved.