|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjaxx.compiler.java.JavaElement
jaxx.compiler.java.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 |
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. |
| Methods inherited from class jaxx.compiler.java.JavaElement |
|---|
getModifiers, getModifiersText, getName, setModifiers, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 getType()
public boolean isFinal()
true if the final keyword should appear before the argument.
true if the argument is final
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||