All Implemented Interfaces:
TypeConstants, TypeIds
Direct Known Subclasses:
IntLiteralMinValue

public class IntLiteral extends NumberLiteral
  • Field Details

    • value

      public int value
    • One

      public static final IntLiteral One
  • Method Details

    • buildIntLiteral

      public static IntLiteral buildIntLiteral(char[] token, int s, int e)
    • computeConstant

      public void computeConstant()
      Specified by:
      computeConstant in class Literal
    • convertToMinValue

      public IntLiteral convertToMinValue()
    • generateCode

      public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired)
      Code generation for long literal
      Overrides:
      generateCode in class Expression
      Parameters:
      currentScope - org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope
      codeStream - org.aspectj.org.eclipse.jdt.internal.compiler.codegen.CodeStream
      valueRequired - boolean
    • literalType

      public TypeBinding literalType(BlockScope scope)
      Specified by:
      literalType in class Literal
    • traverse

      public void traverse(ASTVisitor visitor, BlockScope scope)
      Description copied from class: Expression
      Traverse an expression in the context of a blockScope
      Overrides:
      traverse in class Expression