Class UnmarshalBuilder


  • public class UnmarshalBuilder
    extends MarshalUnmarshalBuilder
    Unmarshalling method builder. Tracks the creation of an unmarshalling method, including special handling of exceptions that may be generated by object accesses during the unmarshalling process.
    Author:
    Dennis M. Sosnoski
    • Field Detail

      • UNMARSHALCONTEXT_CLASS

        private static final java.lang.String UNMARSHALCONTEXT_CLASS
        See Also:
        Constant Field Values
      • UNMARSHAL_EXCEPTION_TEXT

        protected static final java.lang.String UNMARSHAL_EXCEPTION_TEXT
        See Also:
        Constant Field Values
      • UNMARSHALLING_POSITION_METHOD

        protected static final java.lang.String UNMARSHALLING_POSITION_METHOD
        See Also:
        Constant Field Values
      • UNMARSHALLING_POSITION_SIGNATURE

        protected static final java.lang.String UNMARSHALLING_POSITION_SIGNATURE
        See Also:
        Constant Field Values
      • UNMARSHALCONTEXT_TYPE

        private static final Type UNMARSHALCONTEXT_TYPE
      • SINGLE_STRING_ARGS

        protected static final Type[] SINGLE_STRING_ARGS
    • Constructor Detail

      • UnmarshalBuilder

        public UnmarshalBuilder​(java.lang.String name,
                                ClassFile cf,
                                ClassFile mf)
        Constructor. This sets up for constructing a static unmarshalling method with public access and wrapped exception handling.
        Parameters:
        name - method name to be built
        cf - unmarshal class file information
        mf - method generation class file information
    • Method Detail

      • genExceptionHandler

        public InstructionHandle genExceptionHandler()
        Add exception handler code. The implementation of this abstract base class method provides handling specific to an unmarshalling method.
        Specified by:
        genExceptionHandler in class MarshalUnmarshalBuilder
        Returns:
        handle for first instruction in handler