Class AnnotationsReader.ConstantElementValue

  • All Implemented Interfaces:
    AnnotationsReader.ElementValue
    Enclosing class:
    AnnotationsReader

    public static class AnnotationsReader.ConstantElementValue
    extends java.lang.Object
    implements AnnotationsReader.ElementValue
    Represents a constant argument to an annotation. Class arguments (e.g., Foo.class) are also represented with this type, with the value being the String class name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object val
      the constant value
    • Constructor Summary

      Constructors 
      Constructor Description
      ConstantElementValue​(java.lang.Object val)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • val

        public final java.lang.Object val
        the constant value
    • Constructor Detail

      • ConstantElementValue

        public ConstantElementValue​(java.lang.Object val)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object