jaxx.compiler.java
Class JavaArgument

java.lang.Object
  extended by jaxx.compiler.java.JavaElement
      extended by jaxx.compiler.java.JavaArgument

public class JavaArgument
extends JavaElement

Represents an argument to a JavaMethod.

See Also:
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

JavaArgument

public JavaArgument(java.lang.String type,
                    java.lang.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 code
name - the argument's name

JavaArgument

public JavaArgument(java.lang.String type,
                    java.lang.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 code
name - the argument's name
isFinal - true if the argument should be marked final
Method Detail

getType

public java.lang.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-2009 CodeLutin. All Rights Reserved.