Package soot.JastAddJ

Class Literal

    • Field Detail

      • tokenString_LITERAL

        protected String tokenString_LITERAL
      • LITERALstart

        public int LITERALstart
      • LITERALend

        public int LITERALend
      • constant_computed

        protected boolean constant_computed
      • constant_value

        protected Constant constant_value
    • Constructor Detail

      • Literal

        public Literal()
      • Literal

        public Literal​(String p0)
      • Literal

        public Literal​(Symbol p0)
    • Method Detail

      • buildBooleanLiteral

        public static Literal buildBooleanLiteral​(boolean value)
      • buildStringLiteral

        public static Literal buildStringLiteral​(String value)
      • asEscape

        protected static String asEscape​(int value)
      • init$Children

        public void init$Children()
        Initializes the child array to the correct size. Initializes List and Opt nta children.
        Overrides:
        init$Children in class PrimaryExpr
      • setLITERAL

        public void setLITERAL​(String value)
        Replaces the lexeme LITERAL.
        Parameters:
        value - The new value for the lexeme LITERAL.
      • setLITERAL

        public void setLITERAL​(Symbol symbol)
        JastAdd-internal setter for lexeme LITERAL using the Beaver parser.
      • getLITERAL

        public String getLITERAL()
        Retrieves the value for the lexeme LITERAL.
        Returns:
        The value for the lexeme LITERAL.
      • buildDoubleLiteral

        public static Literal buildDoubleLiteral​(double value)
        Returns:
        a fresh double literal representing the given value
      • buildFloatLiteral

        public static Literal buildFloatLiteral​(float value)
        Returns:
        a fresh float literal representing the given value
      • buildIntegerLiteral

        public static Literal buildIntegerLiteral​(int value)
        Returns:
        a fresh integer literal representing the given value
      • buildLongLiteral

        public static Literal buildLongLiteral​(long value)
        Returns:
        a fresh long literal representing the given value
      • isConstant

        public boolean isConstant()
        Overrides:
        isConstant in class Expr