public class ProcessingInstructionType extends NodeType implements TypeValue, java.io.Externalizable
Type.NeverReturns| Modifier and Type | Field and Description |
|---|---|
static ProcessingInstructionType |
piNodeTest |
static ClassType |
typeProcessingInstructionType |
anyNodeTest, ATTRIBUTE_OK, COMMENT_OK, commentNodeTest, DOCUMENT_OK, documentNodeTest, ELEMENT_OK, nodeType, PI_OK, TEXT_OK, textNodeTest, typeKNode, typeNodeTypeflagsboolean_ctype, boolean_type, booleanType, booleanValue_method, byte_type, byteType, char_type, charType, clone_method, double_type, doubleType, doubleValue_method, errorType, float_type, floatType, floatValue_method, int_type, intType, intValue_method, java_lang_Class_type, javalangannotationAnnotationType, javalangBooleanType, javalangCharacterType, javalangClassType, javalanginvokeMethodHandleType, javalangNumberType, javalangObjectType, javalangStringType, javalangThrowableType, long_type, longType, longValue_method, neverReturnsType, nullType, number_type, objectType, pointer_type, reflectClass, short_type, shortType, string_type, throwable_type, toString_method, tostring_type, toStringType, typeArray0, void_type, voidType| Constructor and Description |
|---|
ProcessingInstructionType(java.lang.String target) |
| Modifier and Type | Method and Description |
|---|---|
static KProcessingInstruction |
coerce(java.lang.Object obj,
java.lang.String target) |
java.lang.Object |
coerceFromObject(java.lang.Object obj)
Convert an object to a value of this Type.
|
static KProcessingInstruction |
coerceOrNull(java.lang.Object obj,
java.lang.String target) |
void |
emitCoerceFromObject(CodeAttr code)
Compile (in given method) cast from Object to this Type.
|
protected void |
emitCoerceOrNullMethod(Variable incoming,
Compilation comp) |
Type |
getImplementationType()
Return Java-level implementation type.
|
static ProcessingInstructionType |
getInstance(java.lang.String target) |
boolean |
isInstance(java.lang.Object obj) |
boolean |
isInstancePos(AbstractSequence seq,
int ipos) |
void |
readExternal(java.io.ObjectInput in) |
java.lang.String |
toString() |
void |
writeExternal(java.io.ObjectOutput out) |
coerceForce, coerceOrNull, compare, convertValue, emitIsInstance, emitTestIf, encodeType, getConstructor, isInstancegetContextClass, getContextClassLoader, getField, getInternalName, getMethod, getMethods, getMethods, getReflectClass, isExisting, promote, setExistingcoerceToObject, emitCoerceToObject, emitConvertFromPrimitive, emitIsInstance, getGenericSignature, getMaybeGenericSignature, getName, getRawType, getRealType, getSignature, getSize, getSizeInWords, getType, hashCode, isCompatibleWithValue, isInterface, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, make, printSignature, registerTypeForClass, setGenericSignature, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResultclone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitconvertValue, emitIsInstance, emitTestIf, encodeType, getConstructorpublic static final ProcessingInstructionType piNodeTest
public static final ClassType typeProcessingInstructionType
public ProcessingInstructionType(java.lang.String target)
public static ProcessingInstructionType getInstance(java.lang.String target)
public Type getImplementationType()
TypegetImplementationType in interface TypeValuegetImplementationType in class NodeTypepublic void emitCoerceFromObject(CodeAttr code)
ObjectTypeemitCoerceFromObject in class NodeTypepublic java.lang.Object coerceFromObject(java.lang.Object obj)
TypecoerceFromObject in class NodeTypepublic boolean isInstancePos(AbstractSequence seq, int ipos)
isInstancePos in interface ItemPredicateisInstancePos in class NodeTypepublic boolean isInstance(java.lang.Object obj)
isInstance in class NodeTypepublic static KProcessingInstruction coerceOrNull(java.lang.Object obj, java.lang.String target)
public static KProcessingInstruction coerce(java.lang.Object obj, java.lang.String target)
protected void emitCoerceOrNullMethod(Variable incoming, Compilation comp)
emitCoerceOrNullMethod in class NodeTypepublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class NodeTypejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.ExternalizablereadExternal in class NodeTypejava.io.IOExceptionjava.lang.ClassNotFoundException