|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tentackle.annotations.AnalyzeInfo.Parameter
public static class AnalyzeInfo.Parameter
Abstraction of a method parameter.
| Constructor Summary | |
|---|---|
AnalyzeInfo.Parameter(ProcessingEnvironment processingEnv,
VariableElement var)
Constructor used in apt run. |
|
AnalyzeInfo.Parameter(String name,
String type)
Constructor for wurblets adding paramaters like "this". |
|
AnalyzeInfo.Parameter(StringTokenizer stok)
Constructor used when reading from infofile. |
|
| Method Summary | |
|---|---|
Modifier[] |
getModifiers()
Gets the modifiers |
String |
getModifiersAsString()
Gets all modifiers as a single string. |
String |
getName()
Gets the formal parameter name |
String |
getType()
Gets the parameter type |
boolean |
isInstanceOfContextDb()
Returns whether the parameter is an instance of a ContextDb. |
boolean |
isInstanceOfDb()
Returns whether the parameter is an instance of a Db. |
boolean |
isInstanceOfDbObject()
Returns whether the parameter is an instance of a DbObject. |
boolean |
isModifierSet(Modifier modifier)
Checks if a given modifier is set. |
String |
toString()
Returns a string representation of the object. |
void |
write(PrintWriter writer)
Writes this parameter to the infofile. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnalyzeInfo.Parameter(ProcessingEnvironment processingEnv,
VariableElement var)
processingEnv - the annotations processor's environmentvar - the variable elementpublic AnalyzeInfo.Parameter(StringTokenizer stok)
stok - the string tokenizer (of the infofile)
public AnalyzeInfo.Parameter(String name,
String type)
name - the formal parameter nametype - the parameter type| Method Detail |
|---|
public String getName()
public String getType()
public Modifier[] getModifiers()
public boolean isInstanceOfDb()
Db.
public boolean isInstanceOfContextDb()
ContextDb.
public boolean isInstanceOfDbObject()
DbObject.
public String getModifiersAsString()
public boolean isModifierSet(Modifier modifier)
modifier - the modifier to test
public void write(PrintWriter writer)
throws IOException
writer - the writer bound to the infofile
IOExceptionpublic String toString()
java.lang.ObjecttoString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||