EclipseLink 2.4.2, build 'v20130514-5956486' API Reference

org.eclipse.persistence.jaxb.javamodel.xjc
Class XJCJavaConstructorImpl

java.lang.Object
  extended by org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaConstructorImpl
All Implemented Interfaces:
JavaConstructor

public class XJCJavaConstructorImpl
extends java.lang.Object
implements JavaConstructor

INTERNAL:

Purpose: JavaConstructor implementation wrapping XJC's JMethod. Used when bootstrapping a DynamicJAXBContext from an XML Schema.

Responsibilities:

See Also:
JavaConstructor
Since:
EclipseLink 2.1

Constructor Summary
XJCJavaConstructorImpl(JMethod constructor, JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner)
          Construct a new instance of XJCJavaConstructorImpl.
 
Method Summary
 int getModifiers()
          Returns the Java language modifiers for this JavaConstructor, encoded in an integer.
 java.lang.String getName()
          Returns the name of this JavaConstructor.
 JavaClass getOwningClass()
          Returns the JavaClass which contains this constructor.
 JavaClass[] getParameterTypes()
          Returns the array of parameters for this JavaConstructor.
 boolean isAbstract()
          Indicates if this JavaConstructor is abstract.
 boolean isFinal()
          Indicates if this JavaConstructor is final.
 boolean isPrivate()
          Indicates if this JavaConstructor is private.
 boolean isProtected()
          Indicates if this JavaConstructor is protected.
 boolean isPublic()
          Indicates if this JavaConstructor is public.
 boolean isStatic()
          Indicates if this JavaConstructor is static.
 boolean isSynthetic()
          Not supported.
 void setOwningClass(JavaClass owningClass)
          Set the JavaClass which contains this constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XJCJavaConstructorImpl

public XJCJavaConstructorImpl(JMethod constructor,
                              JCodeModel codeModel,
                              DynamicClassLoader loader,
                              JavaClass owner)
Construct a new instance of XJCJavaConstructorImpl.

Parameters:
constructor - - the XJC JMethod to be wrapped.
codeModel - - the XJC JCodeModel this constructor belongs to.
loader - - the ClassLoader used to bootstrap the DynamicJAXBContext.
owner - - the JavaClass this constructor belongs to.
Method Detail

getModifiers

public int getModifiers()
Returns the Java language modifiers for this JavaConstructor, encoded in an integer.

Specified by:
getModifiers in interface JavaConstructor
Returns:
the int representing the modifiers for this constructor.
See Also:
Modifier

getName

public java.lang.String getName()
Returns the name of this JavaConstructor.

Specified by:
getName in interface JavaConstructor
Returns:
the String name of this JavaConstructor.

getParameterTypes

public JavaClass[] getParameterTypes()
Returns the array of parameters for this JavaConstructor.

Specified by:
getParameterTypes in interface JavaConstructor
Returns:
a JavaClass[] representing the argument types for this constructor.

isAbstract

public boolean isAbstract()
Indicates if this JavaConstructor is abstract.

Specified by:
isAbstract in interface JavaConstructor
Returns:
true if this JavaConstructor is abstract, otherwise false.

isPrivate

public boolean isPrivate()
Indicates if this JavaConstructor is private.

Specified by:
isPrivate in interface JavaConstructor
Returns:
true if this JavaConstructor is private, otherwise false.

isProtected

public boolean isProtected()
Indicates if this JavaConstructor is protected.

Specified by:
isProtected in interface JavaConstructor
Returns:
true if this JavaConstructor is protected, otherwise false.

isPublic

public boolean isPublic()
Indicates if this JavaConstructor is public.

Specified by:
isPublic in interface JavaConstructor
Returns:
true if this JavaConstructor is public, otherwise false.

isStatic

public boolean isStatic()
Indicates if this JavaConstructor is static.

Specified by:
isStatic in interface JavaConstructor
Returns:
true if this JavaConstructor is static, otherwise false.

isFinal

public boolean isFinal()
Indicates if this JavaConstructor is final.

Specified by:
isFinal in interface JavaConstructor
Returns:
true if this JavaConstructor is final, otherwise false.

isSynthetic

public boolean isSynthetic()
Not supported.

Specified by:
isSynthetic in interface JavaConstructor

getOwningClass

public JavaClass getOwningClass()
Returns the JavaClass which contains this constructor.

Specified by:
getOwningClass in interface JavaConstructor
Returns:
JavaClass representing the owner of this JavaConstructor.

setOwningClass

public void setOwningClass(JavaClass owningClass)
Set the JavaClass which contains this constructor.

Parameters:
owningClass - the JavaClass representing the owner of this JavaConstructor.

EclipseLink 2.4.2, build 'v20130514-5956486' API Reference