Class XJCJavaConstructorImpl
java.lang.Object
org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaConstructorImpl
- All Implemented Interfaces:
JavaConstructor
INTERNAL:
Purpose: JavaConstructor implementation wrapping XJC's JMethod. Used when
bootstrapping a DynamicJAXBContext from an XML Schema.
Responsibilities:
- Provide
Constructorinformation from the underlyingJMethod.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXJCJavaConstructorImpl(com.sun.codemodel.JMethod constructor, com.sun.codemodel.JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner) Construct a new instance ofXJCJavaConstructorImpl. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the Java language modifiers for thisJavaConstructor, encoded in an integer.getName()Returns the name of thisJavaConstructor.Returns theJavaClasswhich contains this constructor.Returns the array of parameters for thisJavaConstructor.booleanIndicates if thisJavaConstructorisabstract.booleanisFinal()Indicates if thisJavaConstructorisfinal.booleanIndicates if thisJavaConstructorisprivate.booleanIndicates if thisJavaConstructorisprotected.booleanisPublic()Indicates if thisJavaConstructorispublic.booleanisStatic()Indicates if thisJavaConstructorisstatic.booleanNot supported.voidsetOwningClass(JavaClass owningClass) Set theJavaClasswhich contains this constructor.
-
Constructor Details
-
XJCJavaConstructorImpl
public XJCJavaConstructorImpl(com.sun.codemodel.JMethod constructor, com.sun.codemodel.JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner) Construct a new instance ofXJCJavaConstructorImpl.- Parameters:
constructor- - the XJCJMethodto be wrapped.codeModel- - the XJCJCodeModelthis constructor belongs to.loader- - theClassLoaderused to bootstrap theDynamicJAXBContext.owner- - theJavaClassthis constructor belongs to.
-
-
Method Details
-
getModifiers
public int getModifiers()Returns the Java language modifiers for thisJavaConstructor, encoded in an integer.- Specified by:
getModifiersin interfaceJavaConstructor- Returns:
- the
intrepresenting the modifiers for this constructor. - See Also:
-
getName
Returns the name of thisJavaConstructor.- Specified by:
getNamein interfaceJavaConstructor- Returns:
- the
Stringname of thisJavaConstructor.
-
getParameterTypes
Returns the array of parameters for thisJavaConstructor.- Specified by:
getParameterTypesin interfaceJavaConstructor- Returns:
- a
JavaClass[]representing the argument types for this constructor.
-
isAbstract
public boolean isAbstract()Indicates if thisJavaConstructorisabstract.- Specified by:
isAbstractin interfaceJavaConstructor- Returns:
trueif thisJavaConstructorisabstract, otherwisefalse.
-
isPrivate
public boolean isPrivate()Indicates if thisJavaConstructorisprivate.- Specified by:
isPrivatein interfaceJavaConstructor- Returns:
trueif thisJavaConstructorisprivate, otherwisefalse.
-
isProtected
public boolean isProtected()Indicates if thisJavaConstructorisprotected.- Specified by:
isProtectedin interfaceJavaConstructor- Returns:
trueif thisJavaConstructorisprotected, otherwisefalse.
-
isPublic
public boolean isPublic()Indicates if thisJavaConstructorispublic.- Specified by:
isPublicin interfaceJavaConstructor- Returns:
trueif thisJavaConstructorispublic, otherwisefalse.
-
isStatic
public boolean isStatic()Indicates if thisJavaConstructorisstatic.- Specified by:
isStaticin interfaceJavaConstructor- Returns:
trueif thisJavaConstructorisstatic, otherwisefalse.
-
isFinal
public boolean isFinal()Indicates if thisJavaConstructorisfinal.- Specified by:
isFinalin interfaceJavaConstructor- Returns:
trueif thisJavaConstructorisfinal, otherwisefalse.
-
isSynthetic
public boolean isSynthetic()Not supported.- Specified by:
isSyntheticin interfaceJavaConstructor
-
getOwningClass
Returns theJavaClasswhich contains this constructor.- Specified by:
getOwningClassin interfaceJavaConstructor- Returns:
JavaClassrepresenting the owner of thisJavaConstructor.
-
setOwningClass
Set theJavaClasswhich contains this constructor.- Parameters:
owningClass- theJavaClassrepresenting the owner of thisJavaConstructor.
-