org.infinispan.schematic.document

## Class CodeWithScope

- java.lang.Object
- - org.infinispan.schematic.document.Code
  - - org.infinispan.schematic.document.CodeWithScope

-     @Immutable
      @SerializeWith(value=Code.Externalizer.class)
      public final class CodeWithScope
      extends Code

  A `JavaScript code with scope` value for use within a `BSON Object`.
  Since:
    5.1

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.infinispan.schematic.document.Code

      `Code.Externalizer`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `CodeWithScope(String code, Document scope)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object obj)`
    `Document` | `getScope()`
    `int` | `hashCode()`
    `String` | `toString()`

    - ### Methods inherited from class org.infinispan.schematic.document.Code

      `getCode`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### CodeWithScope

          public CodeWithScope(String code,
                       Document scope)

  - ### Method Detail

    - #### getScope

          public Document getScope()

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Code`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Code`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Code`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.