com.sun.tools.internal.xjc.model.CClassInfoParent Java Examples
The following examples show how to use
com.sun.tools.internal.xjc.model.CClassInfoParent.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BGMBuilder.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #2
Source File: BIEnumeration.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #3
Source File: BeanGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #4
Source File: BGMBuilder.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #5
Source File: BIEnumeration.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #6
Source File: BeanGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #7
Source File: BGMBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #8
Source File: BIEnumeration.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #9
Source File: BeanGenerator.java From hottub with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #10
Source File: BeanGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #11
Source File: BIEnumeration.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #12
Source File: BeanGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #13
Source File: BGMBuilder.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #14
Source File: BIEnumeration.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #15
Source File: BeanGenerator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #16
Source File: BGMBuilder.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #17
Source File: BIEnumeration.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #18
Source File: BIEnumeration.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #19
Source File: BGMBuilder.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #20
Source File: BeanGenerator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #21
Source File: BIEnumeration.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Creates a global enumeration declaration. */ static BIEnumeration create( Element dom, BindInfo parent ) { // create a class in the target package. return new BIEnumeration( dom, new CEnumLeafInfo( parent.model, null, new CClassInfoParent.Package(parent.getTargetPackage()), DOMUtil.getAttribute(dom,"name"), CBuiltinLeafInfo.STRING, buildMemberList(parent.model,dom), null, null/*TODO*/, DOMLocator.getLocationInfo(dom))); }
Example #22
Source File: BGMBuilder.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #23
Source File: BeanGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public JClassContainer getContainer(CClassInfoParent parent, Aspect aspect) { CClassInfoParent.Visitor<JClassContainer> v; switch (aspect) { case EXPOSED: v = exposedContainerBuilder; break; case IMPLEMENTATION: v = implContainerBuilder; break; default: assert false; throw new IllegalStateException(); } return parent.accept(v); }
Example #24
Source File: BGMBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Fill-in the contents of each classes. */ private void buildContents() { ClassSelector cs = getClassSelector(); SimpleTypeBuilder stb = Ring.get(SimpleTypeBuilder.class); for( XSSchema s : Ring.get(XSSchemaSet.class).getSchemas() ) { BISchemaBinding sb = getBindInfo(s).get(BISchemaBinding.class); if(sb!=null && !sb.map) { sb.markAsAcknowledged(); continue; // no mapping for this package } getClassSelector().pushClassScope( new CClassInfoParent.Package( getClassSelector().getPackage(s.getTargetNamespace())) ); checkMultipleSchemaBindings(s); processPackageJavadoc(s); populate(s.getAttGroupDecls(),s); populate(s.getAttributeDecls(),s); populate(s.getElementDecls(),s); populate(s.getModelGroupDecls(),s); // fill in typeUses for (XSType t : s.getTypes().values()) { stb.refererStack.push(t); model.typeUses().put( getName(t), cs.bindToType(t,s) ); stb.refererStack.pop(); } getClassSelector().popClassScope(); } }
Example #25
Source File: ClassSelector.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** Gets the current class scope. */ public final CClassInfoParent getClassScope() { assert !classScopes.isEmpty(); return classScopes.peek(); }
Example #26
Source File: ClassSelector.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** Gets the current class scope. */ public final CClassInfoParent getClassScope() { assert !classScopes.isEmpty(); return classScopes.peek(); }
Example #27
Source File: ClassSelector.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public final void pushClassScope( CClassInfoParent clsFctry ) { assert clsFctry!=null; classScopes.push(clsFctry); }
Example #28
Source File: ClassSelector.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * The real meat of the "bindToType" code. * * @param cannotBeDelayed * if the binding of the body of the class cannot be defered * and needs to be done immediately. If the flag is false, * the binding of the body will be done later, to avoid * cyclic binding problem. * @param referer * The component that refers to <tt>sc</tt>. This can be null, * if figuring out the referer is too hard, in which case * the error message might be less user friendly. */ // TODO: consider getting rid of "cannotBeDelayed" CTypeInfo _bindToClass( @NotNull XSComponent sc, XSComponent referer, boolean cannotBeDelayed ) { // check if this class is already built. if(!bindMap.containsKey(sc)) { // craete a bind task // if this is a global declaration, make sure they will be generated // under a package. boolean isGlobal = false; if( sc instanceof XSDeclaration ) { isGlobal = ((XSDeclaration)sc).isGlobal(); if( isGlobal ) pushClassScope( new CClassInfoParent.Package( getPackage(((XSDeclaration)sc).getTargetNamespace())) ); } // otherwise check if this component should become a class. CElement bean = sc.apply(classBinder); if( isGlobal ) popClassScope(); if(bean==null) return null; // can this namespace generate a class? if (bean instanceof CClassInfo) { XSSchema os = sc.getOwnerSchema(); BISchemaBinding sb = builder.getBindInfo(os).get(BISchemaBinding.class); if(sb!=null && !sb.map) { // nope getErrorReporter().error(sc.getLocator(), Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS, sc.apply( new ComponentNameFunction() ) ); getErrorReporter().error(sb.getLocation(), Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_MAP_FALSE, os.getTargetNamespace() ); if(referer!=null) getErrorReporter().error(referer.getLocator(), Messages.ERR_REFERENCE_TO_NONEXPORTED_CLASS_REFERER, referer.apply( new ComponentNameFunction() ) ); } } queueBuild( sc, bean ); } Binding bind = bindMap.get(sc); if( cannotBeDelayed ) bind.build(); return bind.bean; }
Example #29
Source File: ClassSelector.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public final void pushClassScope( CClassInfoParent clsFctry ) { assert clsFctry!=null; classScopes.push(clsFctry); }
Example #30
Source File: ClassSelector.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public final void pushClassScope( CClassInfoParent clsFctry ) { assert clsFctry!=null; classScopes.push(clsFctry); }