Class IntLiteral

java.lang.Object
pascal.taie.ir.exp.IntLiteral
All Implemented Interfaces:
Serializable, Exp, IntegerLiteral, Literal, NumberLiteral, RValue

public class IntLiteral extends Object implements IntegerLiteral
Representation of int literals.
See Also:
  • Method Details

    • get

      public static IntLiteral get(int value)
    • getType

      public IntType getType()
      Specified by:
      getType in interface Exp
      Returns:
      type of this expression.
    • getValue

      public int getValue()
      Returns:
      the value of the literal as an int.
    • getNumber

      public Integer getNumber()
      Specified by:
      getNumber in interface NumberLiteral
    • accept

      public <T> T accept(ExpVisitor<T> visitor)
      Specified by:
      accept in interface Exp
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object