com.sun.xml.internal.bind.v2.runtime.Transducer Java Examples
The following examples show how to use
com.sun.xml.internal.bind.v2.runtime.Transducer.
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: TransducedAccessor.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * Gets the {@link TransducedAccessor} appropriately configured for * the given property. * * <p> * This allows the implementation to use an optimized code. */ public static <T> TransducedAccessor<T> get(JAXBContextImpl context, RuntimeNonElementRef ref) { Transducer xducer = RuntimeModelBuilder.createTransducer(ref); RuntimePropertyInfo prop = ref.getSource(); if(prop.isCollection()) { return new ListTransducedAccessorImpl(xducer,prop.getAccessor(), Lister.create(Utils.REFLECTION_NAVIGATOR.erasure(prop.getRawType()), prop.id(), prop.getAdapter())); } if(prop.id()==ID.IDREF) return new IDREFTransducedAccessorImpl(prop.getAccessor()); if(xducer.isDefault() && context != null && !context.fastBoot) { TransducedAccessor xa = OptimizedTransducedAccessorFactory.get(prop); if(xa!=null) return xa; } if(xducer.useNamespace()) return new CompositeContextDependentTransducedAccessorImpl( context, xducer, prop.getAccessor() ); else return new CompositeTransducedAccessorImpl( context, xducer, prop.getAccessor() ); }
Example #2
Source File: TransducedAccessor.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * Gets the {@link TransducedAccessor} appropriately configured for * the given property. * * <p> * This allows the implementation to use an optimized code. */ public static <T> TransducedAccessor<T> get(JAXBContextImpl context, RuntimeNonElementRef ref) { Transducer xducer = RuntimeModelBuilder.createTransducer(ref); RuntimePropertyInfo prop = ref.getSource(); if(prop.isCollection()) { return new ListTransducedAccessorImpl(xducer,prop.getAccessor(), Lister.create(Utils.REFLECTION_NAVIGATOR.erasure(prop.getRawType()), prop.id(), prop.getAdapter())); } if(prop.id()==ID.IDREF) return new IDREFTransducedAccessorImpl(prop.getAccessor()); if(xducer.isDefault() && context != null && !context.fastBoot) { TransducedAccessor xa = OptimizedTransducedAccessorFactory.get(prop); if(xa!=null) return xa; } if(xducer.useNamespace()) return new CompositeContextDependentTransducedAccessorImpl( context, xducer, prop.getAccessor() ); else return new CompositeTransducedAccessorImpl( context, xducer, prop.getAccessor() ); }
Example #3
Source File: TransducedAccessor.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
/** * Gets the {@link TransducedAccessor} appropriately configured for * the given property. * * <p> * This allows the implementation to use an optimized code. */ public static <T> TransducedAccessor<T> get(JAXBContextImpl context, RuntimeNonElementRef ref) { Transducer xducer = RuntimeModelBuilder.createTransducer(ref); RuntimePropertyInfo prop = ref.getSource(); if(prop.isCollection()) { return new ListTransducedAccessorImpl(xducer,prop.getAccessor(), Lister.create(Utils.REFLECTION_NAVIGATOR.erasure(prop.getRawType()), prop.id(), prop.getAdapter())); } if(prop.id()==ID.IDREF) return new IDREFTransducedAccessorImpl(prop.getAccessor()); if(xducer.isDefault() && context != null && !context.fastBoot) { TransducedAccessor xa = OptimizedTransducedAccessorFactory.get(prop); if(xa!=null) return xa; } if(xducer.useNamespace()) return new CompositeContextDependentTransducedAccessorImpl( context, xducer, prop.getAccessor() ); else return new CompositeTransducedAccessorImpl( context, xducer, prop.getAccessor() ); }
Example #4
Source File: TransducedAccessor.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * Gets the {@link TransducedAccessor} appropriately configured for * the given property. * * <p> * This allows the implementation to use an optimized code. */ public static <T> TransducedAccessor<T> get(JAXBContextImpl context, RuntimeNonElementRef ref) { Transducer xducer = RuntimeModelBuilder.createTransducer(ref); RuntimePropertyInfo prop = ref.getSource(); if(prop.isCollection()) { return new ListTransducedAccessorImpl(xducer,prop.getAccessor(), Lister.create(Utils.REFLECTION_NAVIGATOR.erasure(prop.getRawType()), prop.id(), prop.getAdapter())); } if(prop.id()==ID.IDREF) return new IDREFTransducedAccessorImpl(prop.getAccessor()); if(xducer.isDefault() && context != null && !context.fastBoot) { TransducedAccessor xa = OptimizedTransducedAccessorFactory.get(prop); if(xa!=null) return xa; } if(xducer.useNamespace()) return new CompositeContextDependentTransducedAccessorImpl( context, xducer, prop.getAccessor() ); else return new CompositeTransducedAccessorImpl( context, xducer, prop.getAccessor() ); }
Example #5
Source File: SingleTypePropertyInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(xducer==null) { xducer = RuntimeModelBuilder.createTransducer((RuntimeNonElementRef)this); if(xducer==null) { // this situation is checked by by the link method. // avoid repeating the same error by silently recovering xducer = RuntimeBuiltinLeafInfoImpl.STRING; } } return xducer; }
Example #6
Source File: RuntimeClassInfoImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(!computedTransducer) { computedTransducer = true; xducer = calcTransducer(); } return xducer; }
Example #7
Source File: SingleTypePropertyInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(xducer==null) { xducer = RuntimeModelBuilder.createTransducer((RuntimeNonElementRef)this); if(xducer==null) { // this situation is checked by by the link method. // avoid repeating the same error by silently recovering xducer = RuntimeBuiltinLeafInfoImpl.STRING; } } return xducer; }
Example #8
Source File: RuntimeClassInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(!computedTransducer) { computedTransducer = true; xducer = calcTransducer(); } return xducer; }
Example #9
Source File: RuntimeClassInfoImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(!computedTransducer) { computedTransducer = true; xducer = calcTransducer(); } return xducer; }
Example #10
Source File: RuntimeClassInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(!computedTransducer) { computedTransducer = true; xducer = calcTransducer(); } return xducer; }
Example #11
Source File: SingleTypePropertyInfoImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(xducer==null) { xducer = RuntimeModelBuilder.createTransducer((RuntimeNonElementRef)this); if(xducer==null) { // this situation is checked by by the link method. // avoid repeating the same error by silently recovering xducer = RuntimeBuiltinLeafInfoImpl.STRING; } } return xducer; }
Example #12
Source File: SingleTypePropertyInfoImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(xducer==null) { xducer = RuntimeModelBuilder.createTransducer((RuntimeNonElementRef)this); if(xducer==null) { // this situation is checked by by the link method. // avoid repeating the same error by silently recovering xducer = RuntimeBuiltinLeafInfoImpl.STRING; } } return xducer; }
Example #13
Source File: RuntimeClassInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(!computedTransducer) { computedTransducer = true; xducer = calcTransducer(); } return xducer; }
Example #14
Source File: RuntimeClassInfoImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public Transducer getTransducer() { if(!computedTransducer) { computedTransducer = true; xducer = calcTransducer(); } return xducer; }
Example #15
Source File: TransducedAccessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public CompositeTransducedAccessorImpl(JAXBContextImpl context, Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { this.xducer = xducer; this.acc = acc.optimize(context); }
Example #16
Source File: RuntimeEnumLeafInfoImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public Transducer<T> getTransducer() { return this; }
Example #17
Source File: RuntimeEnumLeafInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public Transducer<T> getTransducer() { return this; }
Example #18
Source File: TextLoader.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public TextLoader(Transducer xducer) { super(true); this.xducer = xducer; }
Example #19
Source File: TransducedAccessor.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public CompositeContextDependentTransducedAccessorImpl(JAXBContextImpl context,Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { super(context,xducer,acc); assert xducer.useNamespace(); }
Example #20
Source File: RuntimeArrayInfoImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public <V> Transducer<V> getTransducer() { return null; }
Example #21
Source File: TextLoader.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public TextLoader(Transducer xducer) { super(true); this.xducer = xducer; }
Example #22
Source File: TextLoader.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public TextLoader(Transducer xducer) { super(true); this.xducer = xducer; }
Example #23
Source File: TextLoader.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public TextLoader(Transducer xducer) { super(true); this.xducer = xducer; }
Example #24
Source File: RuntimeArrayInfoImpl.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public <V> Transducer<V> getTransducer() { return null; }
Example #25
Source File: RuntimeAnyTypeImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public <V> Transducer<V> getTransducer() { return null; }
Example #26
Source File: ListTransducedAccessorImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public ListTransducedAccessorImpl(Transducer<ItemT> xducer, Accessor<BeanT,ListT> acc, Lister<BeanT,ListT,ItemT,PackT> lister) { this.xducer = xducer; this.lister = lister; this.acc = acc; }
Example #27
Source File: RuntimeModelBuilder.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public IDTransducerImpl(Transducer<ValueT> core) { super(core); }
Example #28
Source File: RuntimeModelBuilder.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
public IDTransducerImpl(Transducer<ValueT> core) { super(core); }
Example #29
Source File: TransducedAccessor.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public CompositeContextDependentTransducedAccessorImpl(JAXBContextImpl context,Transducer<ValueT> xducer, Accessor<BeanT,ValueT> acc) { super(context,xducer,acc); assert xducer.useNamespace(); }
Example #30
Source File: RuntimeElementInfoImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public Transducer getTransducer() { return RuntimeModelBuilder.createTransducer(this); }