Package org.eclipse.wst.xml.xpath2.processor.internal.utils
public class TypePromoter extends java.lang.ObjectGeneric type promoter for handling subtype substitution and type promotions for functions and operators.
Constructor Summary |
TypePromoter() |
Method Summary | |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType | atomize(org.eclipse.wst.xml.xpath2.api.Item at) |
protected boolean | checkCombination(java.lang.Class newType) |
public void | considerSequence(org.eclipse.wst.xml.xpath2.api.ResultSequence sequenceToConsider) |
public void | considerType(java.lang.Class typeToConsider) |
public void | considerTypes(java.util.Collection typesToConsider) |
public void | considerValue(org.eclipse.wst.xml.xpath2.api.Item at) |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType | doPromote(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType value) |
public java.lang.Class | getTargetType() |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType | promote(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType value) |
protected void | setTargetType(java.lang.Class class1) |
protected java.lang.Class | substitute(java.lang.Class typeToConsider) |
Constructor Detail |
public TypePromoter()
Methods Detail |
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType atomize(org.eclipse.wst.xml.xpath2.api.Item at)
at
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType
protected boolean checkCombination(java.lang.Class newType)
newType
boolean
public void considerSequence(org.eclipse.wst.xml.xpath2.api.ResultSequence sequenceToConsider)
sequenceToConsider
org.eclipse.wst.xml.xpath2.processor.DynamicError
public void considerType(java.lang.Class typeToConsider)
typeToConsider
org.eclipse.wst.xml.xpath2.processor.DynamicError
public void considerTypes(java.util.Collection typesToConsider)
typesToConsider
org.eclipse.wst.xml.xpath2.processor.DynamicError
public void considerValue(org.eclipse.wst.xml.xpath2.api.Item at)
at
org.eclipse.wst.xml.xpath2.processor.DynamicError
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType doPromote(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType value)
value
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType
org.eclipse.wst.xml.xpath2.processor.DynamicError
public java.lang.Class getTargetType()
java.lang.Class
public org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType promote(org.eclipse.wst.xml.xpath2.processor.internal.types.AnyType value)
value
org.eclipse.wst.xml.xpath2.processor.internal.types.AnyAtomicType
org.eclipse.wst.xml.xpath2.processor.DynamicError
protected void setTargetType(java.lang.Class class1)
class1
protected java.lang.Class substitute(java.lang.Class typeToConsider)
typeToConsider
- The
java.lang.Class
- The supertype to treat it as (i.e. if a xs:nonNegativeInteger is treated as xs:number)