|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fuin.srcgen4javassist.SgAnnotation
public final class SgAnnotation
A annotation. TODO Handle annotation arguments TODO Handle different types of annotations (CLASS, RUNTIME; SOURCE)
| Constructor Summary | |
|---|---|
SgAnnotation(String packageName,
String simpleName)
Constructor with package and name of the class. |
|
| Method Summary | |
|---|---|
void |
addArgument(String name,
Object value)
Adds an argument. |
Map<String,Object> |
getArguments()
Returns the annotations arguments. |
String |
getName()
Returns the name of the annotation. |
String |
getPackageName()
Returns the package of the annotation. |
String |
getSimpleName()
Returns the name of the annotation. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SgAnnotation(String packageName,
String simpleName)
packageName - Package - Cannot be null (but empty for default package).simpleName - Name (without package) - Cannot be null.| Method Detail |
|---|
public final String getName()
public final String getPackageName()
public final String getSimpleName()
public final Map<String,Object> getArguments()
public final void addArgument(String name,
Object value)
name - Name of the argument - Cannot be null.value - Value of the argument - Cannot be null.public final String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||