|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.JavaArgument
public class JavaArgument
Represents an argument to a JavaMethod.
JavaMethod| Constructor Summary | |
|---|---|
JavaArgument(java.lang.String type,
java.lang.String name)
Creates a new JavaArgument with the specified name and type. |
|
JavaArgument(java.lang.String type,
java.lang.String name,
boolean isFinal)
Creates a new JavaArgument with the specified name, type, and finality. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Returns the argument's name. |
java.lang.String |
getType()
Returns the argument's type as it would be represented in Java source code. |
boolean |
isFinal()
Returns true if the final keyword should appear before the argument. |
java.lang.String |
toString()
Returns the Java source code for this argument. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JavaArgument(java.lang.String type,
java.lang.String name)
JavaArgument with the specified name and type. For example, the method main()
might have a JavaArgument with a name of "arg" and a type of "java.lang.String[]".
type - the argument's type, as it would appear in Java source codename - the argument's name
public JavaArgument(java.lang.String type,
java.lang.String name,
boolean isFinal)
JavaArgument with the specified name, type, and finality. For example, the method main()
might have a JavaArgument with a name of "arg" and a type of "java.lang.String[]". The
isFinal parameter allows the presence of the final keyword on the argument to be controlled.
type - the argument's type, as it would appear in Java source codename - the argument's nameisFinal - true if the argument should be marked final| Method Detail |
|---|
public java.lang.String getName()
public java.lang.String getType()
public boolean isFinal()
true if the final keyword should appear before the argument.
true if the argument is finalpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||