|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cmu.cs.crystal.annotations.AnnotationSummary
public class AnnotationSummary
Represents the annotations for a method declaration.
Constructor Summary | |
---|---|
AnnotationSummary(String[] paramNames)
|
Method Summary | |
---|---|
void |
add(AnnotationSummary summary)
|
void |
addAllParameter(List<ICrystalAnnotation> annosToAdd,
int ndx)
|
void |
addAllReturn(List<ICrystalAnnotation> annosToAdd)
|
void |
addParameter(ICrystalAnnotation anno,
int ndx)
|
void |
addReturn(ICrystalAnnotation anno)
|
List<ICrystalAnnotation> |
getParameter(int ndx)
|
ICrystalAnnotation |
getParameter(int ndx,
String annoName)
Returns the (first) annotation of the given type for the given parameter, if any. |
ICrystalAnnotation |
getParameter(String name,
String annoName)
Returns the (first) annotation of the given type for the given parameter, if any. |
String |
getParameterName(int ndx)
|
String[] |
getParameterNames()
|
List<ICrystalAnnotation> |
getReturn()
|
ICrystalAnnotation |
getReturn(String annoName)
Returns the (first) return annotation of the given type, if any. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationSummary(String[] paramNames)
Method Detail |
---|
public String getParameterName(int ndx)
public String[] getParameterNames()
public List<ICrystalAnnotation> getParameter(int ndx)
ndx
- 0-based parameter index..
public ICrystalAnnotation getParameter(int ndx, String annoName)
MultiAnnotation
there can be multiple annotations
of one type on a given Java element, but this method returns only the first one.
ndx
- 0-based parameter index.annoName
- The type name of the annotation.
null
if this annotation does not exist.public ICrystalAnnotation getParameter(String name, String annoName)
MultiAnnotation
there can be multiple annotations
of one type on a given Java element, but this method returns only the first one.
name
- The name of the parameterannoName
- The type name of the annotation.
null
if this annotation does not exist.public List<ICrystalAnnotation> getReturn()
public ICrystalAnnotation getReturn(String annoName)
MultiAnnotation
there can be multiple annotations
of one type on a given Java element, but this method returns only the first one.
annoName
- The type name of the annotation.
null
.public void add(AnnotationSummary summary)
public void addReturn(ICrystalAnnotation anno)
public void addAllReturn(List<ICrystalAnnotation> annosToAdd)
public void addParameter(ICrystalAnnotation anno, int ndx)
public void addAllParameter(List<ICrystalAnnotation> annosToAdd, int ndx)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |