jaxx.compiler.java
Class JavaArgument
java.lang.Object
jaxx.compiler.java.JavaElement
jaxx.compiler.java.JavaArgument
public class JavaArgument
- extends JavaElement
Represents an argument to a JavaMethod.
- See Also:
JavaMethod
|
Constructor Summary |
JavaArgument(String type,
String name)
Creates a new JavaArgument with the specified name and type. |
JavaArgument(String type,
String name,
boolean isFinal)
Creates a new JavaArgument with the specified name, type, and finality. |
|
Method Summary |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaArgument
public JavaArgument(String type,
String name)
- 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 codename - the argument's name
JavaArgument
public JavaArgument(String type,
String name,
boolean isFinal)
- 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 codename - the argument's nameisFinal - true if the argument should be marked final
getType
public String getType()
- Returns the argument's type as it would be represented in Java source code.
- Returns:
- the argument's type
isFinal
public boolean isFinal()
- Returns
true if the final keyword should appear before the argument.
- Returns:
true if the argument is final
Copyright © 2008-2011 CodeLutin. All Rights Reserved.