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 Details

    • UNMARSHALCONTEXT_CLASS

      private static final String UNMARSHALCONTEXT_CLASS
      See Also:
    • UNMARSHAL_EXCEPTION_TEXT

      protected static final String UNMARSHAL_EXCEPTION_TEXT
      See Also:
    • UNMARSHALLING_POSITION_METHOD

      protected static final String UNMARSHALLING_POSITION_METHOD
      See Also:
    • UNMARSHALLING_POSITION_SIGNATURE

      protected static final String UNMARSHALLING_POSITION_SIGNATURE
      See Also:
    • UNMARSHALCONTEXT_TYPE

      private static final Type UNMARSHALCONTEXT_TYPE
    • SINGLE_STRING_ARGS

      protected static final Type[] SINGLE_STRING_ARGS
  • Constructor Details

    • UnmarshalBuilder

      public UnmarshalBuilder(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 Details

    • 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