Class XJCJavaConstructorImpl
- java.lang.Object
-
- org.eclipse.persistence.jaxb.javamodel.xjc.XJCJavaConstructorImpl
-
- All Implemented Interfaces:
JavaConstructor
public class XJCJavaConstructorImpl extends java.lang.Object implements JavaConstructor
INTERNAL:Purpose:
JavaConstructorimplementation wrapping XJC'sJMethod. Used when bootstrapping aDynamicJAXBContextfrom an XML Schema.Responsibilities:
- Provide
Constructorinformation from the underlyingJMethod.
- See Also:
JavaConstructor- Since:
- EclipseLink 2.1
-
-
Constructor Summary
Constructors Constructor Description XJCJavaConstructorImpl(com.sun.codemodel.JMethod constructor, com.sun.codemodel.JCodeModel codeModel, DynamicClassLoader loader, JavaClass owner)Construct a new instance ofXJCJavaConstructorImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetModifiers()Returns the Java language modifiers for thisJavaConstructor, encoded in an integer.java.lang.StringgetName()Returns the name of thisJavaConstructor.JavaClassgetOwningClass()Returns theJavaClasswhich contains this constructor.JavaClass[]getParameterTypes()Returns the array of parameters for thisJavaConstructor.booleanisAbstract()Indicates if thisJavaConstructorisabstract.booleanisFinal()Indicates if thisJavaConstructorisfinal.booleanisPrivate()Indicates if thisJavaConstructorisprivate.booleanisProtected()Indicates if thisJavaConstructorisprotected.booleanisPublic()Indicates if thisJavaConstructorispublic.booleanisStatic()Indicates if thisJavaConstructorisstatic.booleanisSynthetic()Not supported.voidsetOwningClass(JavaClass owningClass)Set theJavaClasswhich contains this constructor.
-
-
-
Constructor Detail
-
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 Detail
-
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:
Modifier
-
getName
public java.lang.String getName()
Returns the name of thisJavaConstructor.- Specified by:
getNamein interfaceJavaConstructor- Returns:
- the
Stringname of thisJavaConstructor.
-
getParameterTypes
public JavaClass[] 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
public JavaClass getOwningClass()
Returns theJavaClasswhich contains this constructor.- Specified by:
getOwningClassin interfaceJavaConstructor- Returns:
JavaClassrepresenting the owner of thisJavaConstructor.
-
setOwningClass
public void setOwningClass(JavaClass owningClass)
Set theJavaClasswhich contains this constructor.- Parameters:
owningClass- theJavaClassrepresenting the owner of thisJavaConstructor.
-
-