Class IzAnnotation

java.lang.Object
com.iizigo.java.parser.type.IzAnnotation

public class IzAnnotation extends Object
Annotation for a method or class.
Author:
Christopher Mindus
  • Field Details

    • fqn

      public final String fqn
      The fully qualified name.
    • description

      public final String description
      Description if present.
  • Constructor Details

    • IzAnnotation

      public IzAnnotation(IAnnotationBinding ab)
      Constructor.
      Parameters:
      ab - The annotation bindings.
    • IzAnnotation

      public IzAnnotation(IAnnotationBinding ab, boolean doAddNameParam)
      Constructor.
      Parameters:
      ab - The annotation bindings.
      doAddNameParam - If true, the parameters table will add a parameter named "name", "descr" or "ref".
  • Method Details

    • getParam

      public String getParam(String name)
      Gets the parameter string.
      Parameters:
      name - The parameter name (case sensitive).
      Returns:
      The value or null for none.
    • getParam

      public String getParam(String name, String defaultValue)
      Gets the parameter string.
      Parameters:
      name - The parameter name (case sensitive).
      defaultValue - Default value if none is found, can be null.
      Returns:
      The value or null for none.
    • list

      public void list(StringBuilder buf)
      Lists an annotation to StringBuilder.
    • list

      public String list()
      Lists an annotation to a string.
    • list

      public void list(PrintStream printStream)
      Lists an annotation to an output.