Class ClassConstant

    • Constructor Detail

      • ClassConstant

        public ClassConstant​(ClassInfo classInfo,
                             int nameIndex)
        Constructs a new ClassConstant instance.
        Parameters:
        classInfo - the ClassInfo instance this constant is part of.
        nameIndex - the class constant name index.
    • Method Detail

      • resolveSymbol

        public @NonNull java.lang.String resolveSymbol()
                                                throws java.io.IOException
        Description copied from class: Constant
        Resolves the symbol representing this Constant instance.
        Overrides:
        resolveSymbol in class NameConstant
        Returns:
        the symbol representing this Constant instance.
        Throws:
        java.io.IOException - if the constant cannot be resolved.
      • print

        public void print​(ClassPrinter out,
                          ClassContext context)
                   throws java.io.IOException
        Description copied from interface: Printable
        Prints this instance.
        Parameters:
        out - the ClassPrinter instance to print to.
        context - the context of this print invocation.
        Throws:
        java.io.IOException - if an I/O error occurs.