Package jaxx.compiler.java
Class JavaConstructor
java.lang.Object
jaxx.compiler.java.JavaElement
jaxx.compiler.java.JavaConstructor
public class JavaConstructor extends JavaElement
To mirror a
Constructor.
In a constructor we need to keep all parameters types as fqn since when
a jaxx object inheritates from anohter one, it is painfull (even impossible?)
to find out from a simple name his fqn.
So when using constructor, always keep fqn types.- Since:
- 2.4
- Author:
- Tony Chemit - chemit@codelutin.com
-
Field Summary
Fields inherited from class jaxx.compiler.java.JavaElement
JavaElementComparator -
Method Summary
Modifier and Type Method Description JavaArgument[]getArguments()Returns a list of the method's arguments.java.lang.StringgetBody()java.lang.String[]getExceptions()Returns a list of exceptions the method can throw.Methods inherited from class jaxx.compiler.java.JavaElement
addAnnotation, getAnnotations, getModifiers, getModifiersText, getName, hasAnnotations, setModifiers, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
getArguments
Returns a list of the method's arguments.- Returns:
- the method's arguments
-
getExceptions
public java.lang.String[] getExceptions()Returns a list of exceptions the method can throw.- Returns:
- the method's exceptions
-
getBody
public java.lang.String getBody()
-