Package: org.apache.groovy.groovysh.jline

## [Groovy] Class Snippet

- org.apache.groovy.groovysh.jline.Snippet

-     class Snippet
      extends Object

  Stores a source fragment together with its snippet classification.

- - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `String` | `snippet` Source text stored for the snippet.
    `SnippetType` | `type` Classification assigned to the snippet.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `Snippet(SnippetType type, String snippet)` Creates a typed snippet wrapper.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Object` | `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Property Detail

    - #### String snippet

      Source text stored for the snippet.

    - #### SnippetType type

      Classification assigned to the snippet.

  - ### Constructor Detail

    - #### Snippet(SnippetType type, String snippet)

      Creates a typed snippet wrapper.

      Parameters:
        `type` - snippet classification
        `snippet` - source text to store