Class ProcessingInstructionType
java.lang.Object
gnu.bytecode.Type
gnu.bytecode.ObjectType
gnu.kawa.xml.NodeType
gnu.kawa.xml.ProcessingInstructionType
- All Implemented Interfaces:
TypeValue, ItemPredicate, NodePredicate, Externalizable, Serializable, Type
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Type
Type.NeverReturns -
Field Summary
FieldsFields inherited from class NodeType
anyNodeTest, ATTRIBUTE_OK, COMMENT_OK, commentNodeTest, DOCUMENT_OK, documentNodeTest, ELEMENT_OK, nodeType, PI_OK, TEXT_OK, textNodeTest, typeKNode, typeNodeTypeFields inherited from class ObjectType
flagsFields inherited from class Type
boolean_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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KProcessingInstructioncoerceFromObject(Object obj) Convert an object to a value of this Type.static KProcessingInstructioncoerceOrNull(Object obj, String target) voidemitCoerceFromObject(CodeAttr code) Compile (in given method) cast from Object to this Type.protected voidemitCoerceOrNullMethod(Variable incoming, Compilation comp) Return Java-level implementation type.static ProcessingInstructionTypegetInstance(String target) booleanisInstance(Object obj) booleanisInstancePos(AbstractSequence seq, int ipos) voidtoString()voidMethods inherited from class NodeType
coerceForce, coerceOrNull, compare, convertValue, emitIsInstance, emitTestIf, getConstructor, isInstanceMethods inherited from class ObjectType
getContextClass, getContextClassLoader, getField, getInterfaces, getInternalName, getMethod, getMethods, getMethods, getReflectClass, getSuperclass, isExisting, setExistingMethods inherited from class Type
coerceToObject, emitCoerceToObject, emitConvertFromPrimitive, emitIsInstance, getGenericSignature, getMaybeGenericSignature, getName, getRawType, getRealType, getSignature, getSize, getSizeInWords, getType, hashCode, isCompatibleWithValue, isCompatibleWithValue, isInterface, isMoreSpecific, isSame, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSharedType, lowestCommonSuperType, make, make, printSignature, promote, promoteIfUnsigned, registerTypeForClass, setGenericSignature, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResultMethods inherited from class Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface Type
getTypeNameMethods inherited from interface TypeValue
convertValue, emitIsInstance, emitTestIf, encodeType, getConstructor
-
Field Details
-
piNodeTest
-
typeProcessingInstructionType
-
-
Constructor Details
-
ProcessingInstructionType
-
-
Method Details
-
getInstance
-
getImplementationType
Description copied from class:TypeReturn Java-level implementation type. The type used to implement types not natively understood by the JVM or the Java language. Usually, the identity function. However, a language might handle union types or template types or type expressions calculated at run time. In that case return the type used at the Java level, and known at compile time.- Specified by:
getImplementationTypein interfaceTypeValue- Overrides:
getImplementationTypein classNodeType
-
emitCoerceFromObject
Description copied from class:ObjectTypeCompile (in given method) cast from Object to this Type.- Overrides:
emitCoerceFromObjectin classNodeType
-
coerceFromObject
Description copied from class:TypeConvert an object to a value of this Type. The result is actually of the implementation type, boxed as appropriate, so it is suitable for standard reflective operations, like the arguments to Field#set or Method#invoke. Throw a ClassCastException when this is not possible.- Overrides:
coerceFromObjectin classNodeType
-
isInstancePos
- Specified by:
isInstancePosin interfaceItemPredicate- Overrides:
isInstancePosin classNodeType
-
isInstance
- Overrides:
isInstancein classNodeType
-
coerceOrNull
-
coerce
-
emitCoerceOrNullMethod
- Overrides:
emitCoerceOrNullMethodin classNodeType
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classNodeType- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classNodeType- Throws:
IOExceptionClassNotFoundException
-
toString
-