class Snippet
extends Object
Stores a source fragment together with its snippet classification.
| Type | Name and description |
|---|---|
String |
snippetSource text stored for the snippet. |
SnippetType |
typeClassification assigned to the snippet. |
| Constructor and description |
|---|
Snippet(SnippetType type, String snippet)Creates a typed snippet wrapper. |
Source text stored for the snippet.
Classification assigned to the snippet.
Creates a typed snippet wrapper.
type - snippet classificationsnippet - source text to storeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.