Package com.iizigo.java.parser.type
Class IzAnnotation
- java.lang.Object
-
- com.iizigo.java.parser.type.IzAnnotation
-
public class IzAnnotation extends java.lang.Object
Annotation for a method or class.- Author:
- Christopher Mindus
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
description
Description if present.java.lang.String
fqn
The fully qualified name.
-
Constructor Summary
Constructors Constructor Description IzAnnotation(org.eclipse.jdt.core.dom.IAnnotationBinding ab)
Constructor.IzAnnotation(org.eclipse.jdt.core.dom.IAnnotationBinding ab, boolean doAddNameParam)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getParam(java.lang.String name)
Gets the parameter string.java.lang.String
getParam(java.lang.String name, java.lang.String defaultValue)
Gets the parameter string.java.lang.String
list()
Lists an annotation to a string.void
list(java.io.PrintStream printStream)
Lists an annotation to an output.void
list(java.lang.StringBuilder buf)
Lists an annotation to StringBuilder.
-
-
-
Constructor Detail
-
IzAnnotation
public IzAnnotation(org.eclipse.jdt.core.dom.IAnnotationBinding ab)
Constructor.- Parameters:
ab
- The annotation bindings.
-
IzAnnotation
public IzAnnotation(org.eclipse.jdt.core.dom.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 Detail
-
getParam
public java.lang.String getParam(java.lang.String name)
Gets the parameter string.- Parameters:
name
- The parameter name (case sensitive).- Returns:
- The value or null for none.
-
getParam
public java.lang.String getParam(java.lang.String name, java.lang.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(java.lang.StringBuilder buf)
Lists an annotation to StringBuilder.
-
list
public java.lang.String list()
Lists an annotation to a string.
-
list
public void list(java.io.PrintStream printStream)
Lists an annotation to an output.
-
-