| java.lang.Object jaxx.compiler.JavaArgument
JavaArgument | public class JavaArgument (Code) | | Represents an argument to a JavaMethod .
See Also: JavaMethod |
Constructor Summary | |
public | JavaArgument(String type, String name) Creates a new JavaArgument with the specified name and type. | public | JavaArgument(String type, String name, boolean isFinal) Creates a new JavaArgument with the specified name, type, and finality. |
Method Summary | |
public String | getName() Returns the argument's name. | public String | getType() Returns the argument's type as it would be represented in Java source code. | public boolean | isFinal() Returns true if the final keyword should appear before the argument. | public String | toString() Returns the Java source code for this argument. |
JavaArgument | public JavaArgument(String type, String name)(Code) | | Creates a new 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[]" .
Parameters: type - the argument's type, as it would appear in Java source code Parameters: name - the argument's name |
JavaArgument | public JavaArgument(String type, String name, boolean isFinal)(Code) | | Creates a new 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.
Parameters: type - the argument's type, as it would appear in Java source code Parameters: name - the argument's name Parameters: isFinal - true if the argument should be marked final |
getName | public String getName()(Code) | | Returns the argument's name.
the name of the argument |
getType | public String getType()(Code) | | Returns the argument's type as it would be represented in Java source code.
the argument's type |
isFinal | public boolean isFinal()(Code) | | Returns true if the final keyword should appear before the argument.
true if the argument is final |
toString | public String toString()(Code) | | Returns the Java source code for this argument.
the Java source code for this argument |
|
|