Class XAnnotationField<T>

    • Constructor Detail

      • XAnnotationField

        public XAnnotationField​(String name)
        Constructrs an annotation field with the given name.
        Parameters:
        name - name of the field.
    • Method Detail

      • getName

        public String getName()
        Returns the name of the field.
        Returns:
        Name of the field.
      • getValue

        public abstract T getValue()
        Returns the value of the field.
        Returns:
        Value of the field.
      • getResult

        public Object getResult()
        Returns the result value of the field. By default, returns the value of the field.
        Returns:
        Result value of the field.
      • getType

        public abstract Class<?> getType()
        Return the type of the field.
        Returns:
        Type of the field.
      • accept

        public abstract <P> P accept​(XAnnotationFieldVisitor<P> visitor)
        Accepts the annotation visitor.
        Type Parameters:
        P - Return type of the visitor.
        Parameters:
        visitor - visitor to accept.
        Returns:
        Result of the visit.