com.saxonica.bytecode.util

## Class OnEmpty.ReturnNull

- java.lang.Object
- - com.saxonica.bytecode.util.OnEmpty
  - - com.saxonica.bytecode.util.OnEmpty.ReturnNull

- Enclosing class:
    OnEmpty

      public static class OnEmpty.ReturnNull
      extends OnEmpty

  The ReturnNull subclass indicates that when an expression evaluates to the empty sequence, the value should be returned as a Java null. This works only for types represented as Java objects, that is, String and CharSequence.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.saxonica.bytecode.util.OnEmpty

      `OnEmpty.ReturnEmptyString, OnEmpty.ReturnNull, OnEmpty.UnwindAndJump`

  - ### Field Summary

    - ### Fields inherited from class com.saxonica.bytecode.util.OnEmpty

      `RETURN_EMPTY_STRING, RETURN_NULL`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `OnEmpty.ReturnNull()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `generate(Generator ga)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OnEmpty.ReturnNull

          public OnEmpty.ReturnNull()

  - ### Method Detail

    - #### generate

          public void generate(Generator ga)

      Specified by:
        `generate` in class `OnEmpty`

Copyright (c) 2004-2013 Saxonica Limited. All rights reserved.