java.lang.Object
org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant
All Implemented Interfaces:
OperatorIds, TypeIds
Direct Known Subclasses:
BooleanConstant, ByteConstant, CharConstant, DoubleConstant, FloatConstant, IntConstant, LongConstant, ShortConstant, StringConstant

public abstract class Constant extends Object implements TypeIds, OperatorIds
  • Field Details

    • NotAConstant

      public static final Constant NotAConstant
    • NotAConstantList

      public static final Constant[] NotAConstantList
  • Constructor Details

    • Constant

      public Constant()
  • Method Details

    • booleanValue

      public boolean booleanValue()
    • byteValue

      public byte byteValue()
    • castTo

      public final Constant castTo​(int conversionToTargetType)
    • charValue

      public char charValue()
    • computeConstantOperation

      public static final Constant computeConstantOperation​(Constant cst, int id, int operator)
    • computeConstantOperation

      public static final Constant computeConstantOperation​(Constant left, int leftId, int operator, Constant right, int rightId)
    • computeConstantOperationAND

      public static final Constant computeConstantOperationAND​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationAND_AND

      public static final Constant computeConstantOperationAND_AND​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationDIVIDE

      public static final Constant computeConstantOperationDIVIDE​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationEQUAL_EQUAL

      public static final Constant computeConstantOperationEQUAL_EQUAL​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationGREATER

      public static final Constant computeConstantOperationGREATER​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationGREATER_EQUAL

      public static final Constant computeConstantOperationGREATER_EQUAL​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationLEFT_SHIFT

      public static final Constant computeConstantOperationLEFT_SHIFT​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationLESS

      public static final Constant computeConstantOperationLESS​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationLESS_EQUAL

      public static final Constant computeConstantOperationLESS_EQUAL​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationMINUS

      public static final Constant computeConstantOperationMINUS​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationMULTIPLY

      public static final Constant computeConstantOperationMULTIPLY​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationOR

      public static final Constant computeConstantOperationOR​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationOR_OR

      public static final Constant computeConstantOperationOR_OR​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationPLUS

      public static final Constant computeConstantOperationPLUS​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationREMAINDER

      public static final Constant computeConstantOperationREMAINDER​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationRIGHT_SHIFT

      public static final Constant computeConstantOperationRIGHT_SHIFT​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationUNSIGNED_RIGHT_SHIFT

      public static final Constant computeConstantOperationUNSIGNED_RIGHT_SHIFT​(Constant left, int leftId, Constant right, int rightId)
    • computeConstantOperationXOR

      public static final Constant computeConstantOperationXOR​(Constant left, int leftId, Constant right, int rightId)
    • doubleValue

      public double doubleValue()
    • floatValue

      public float floatValue()
    • hasSameValue

      public boolean hasSameValue​(Constant otherConstant)
      Returns true if both constants have the same type and the same actual value
      Parameters:
      otherConstant -
    • intValue

      public int intValue()
    • longValue

      public long longValue()
    • shortValue

      public short shortValue()
    • stringValue

      public String stringValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • typeID

      public abstract int typeID()
    • typeName

      public String typeName()