Module org.eclipse.persistence.moxy
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.
- Since:
- EclipseLink 2.1
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionXJCJavaConstructorImpl(com.sun.codemodel.JMethod constructor, com.sun.codemodel.JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner) Construct a new instance ofXJCJavaConstructorImpl.
- 
Method SummaryModifier 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- 
XJCJavaConstructorImplpublic XJCJavaConstructorImpl(com.sun.codemodel.JMethod constructor, com.sun.codemodel.JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner) Construct a new instance ofXJCJavaConstructorImpl.- Parameters:
- constructor- - the XJC- JMethodto be wrapped.
- codeModel- - the XJC- JCodeModelthis constructor belongs to.
- loader- - the- ClassLoaderused to bootstrap the- DynamicJAXBContext.
- owner- - the- JavaClassthis constructor belongs to.
 
 
- 
- 
Method Details- 
getModifierspublic int getModifiers()Returns the Java language modifiers for thisJavaConstructor, encoded in an integer.- Specified by:
- getModifiersin interface- JavaConstructor
- Returns:
- the intrepresenting the modifiers for this constructor.
- See Also:
 
- 
getNameReturns the name of thisJavaConstructor.- Specified by:
- getNamein interface- JavaConstructor
- Returns:
- the Stringname of thisJavaConstructor.
 
- 
getParameterTypesReturns the array of parameters for thisJavaConstructor.- Specified by:
- getParameterTypesin interface- JavaConstructor
- Returns:
- a JavaClass[]representing the argument types for this constructor.
 
- 
isAbstractpublic boolean isAbstract()Indicates if thisJavaConstructorisabstract.- Specified by:
- isAbstractin interface- JavaConstructor
- Returns:
- trueif this- JavaConstructoris- abstract, otherwise- false.
 
- 
isPrivatepublic boolean isPrivate()Indicates if thisJavaConstructorisprivate.- Specified by:
- isPrivatein interface- JavaConstructor
- Returns:
- trueif this- JavaConstructoris- private, otherwise- false.
 
- 
isProtectedpublic boolean isProtected()Indicates if thisJavaConstructorisprotected.- Specified by:
- isProtectedin interface- JavaConstructor
- Returns:
- trueif this- JavaConstructoris- protected, otherwise- false.
 
- 
isPublicpublic boolean isPublic()Indicates if thisJavaConstructorispublic.- Specified by:
- isPublicin interface- JavaConstructor
- Returns:
- trueif this- JavaConstructoris- public, otherwise- false.
 
- 
isStaticpublic boolean isStatic()Indicates if thisJavaConstructorisstatic.- Specified by:
- isStaticin interface- JavaConstructor
- Returns:
- trueif this- JavaConstructoris- static, otherwise- false.
 
- 
isFinalpublic boolean isFinal()Indicates if thisJavaConstructorisfinal.- Specified by:
- isFinalin interface- JavaConstructor
- Returns:
- trueif this- JavaConstructoris- final, otherwise- false.
 
- 
isSyntheticpublic boolean isSynthetic()Not supported.- Specified by:
- isSyntheticin interface- JavaConstructor
 
- 
getOwningClassReturns theJavaClasswhich contains this constructor.- Specified by:
- getOwningClassin interface- JavaConstructor
- Returns:
- JavaClassrepresenting the owner of this- JavaConstructor.
 
- 
setOwningClassSet theJavaClasswhich contains this constructor.- Parameters:
- owningClass- the- JavaClassrepresenting the owner of this- JavaConstructor.
 
 
-