com.borland.jbuilder.jot
Interface JotConstructor
- All Superinterfaces:
- JotMethod
- All Known Subinterfaces:
- JotConstructorSource
- public interface JotConstructor
- extends JotMethod
This interface represents an object constructor. See section 8.6 of the Java
Language Specification for more information.
- See Also:
JotConstructorSource
Method Summary |
java.lang.String |
getName()
Returns <init> . |
java.lang.Object |
newInstance(java.lang.Object[] initargs)
Returns a new instance of the containing class using this constructor. |
getName
public java.lang.String getName()
- Returns
<init>
. The Java Virtual Machine specification
dictates that all constructors be given the name <init>
in
the Java class file. If you are working with source, use JotConstructorSource.getDeclaredName()
to get the declared name. If you are working with classes, you can determine
the declared name of the constructor from the name of the class.
- Specified by:
getName
in interface JotMethod
newInstance
public java.lang.Object newInstance(java.lang.Object[] initargs)
- Returns a new instance of the containing class using this constructor. If
this class cannot be instantiated, then returns
null
.