# Class SyntaxHighlightResult

java.lang.Object
com.codename1.ui.editor.SyntaxHighlightResult

public final class SyntaxHighlightResult extends Object
Result of highlighting one source line, including the opaque state passed to the following line.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `final int`
  `endState`
  Opaque state passed to the highlighter for the next line.
  `final List<SyntaxToken>`
  `tokens`
  Ordered, non-overlapping tokens for the line.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SyntaxHighlightResult(List<SyntaxToken> tokens, int endState)`
  Creates a line result.

- ## Method Summary

  ### Methods inherited from class Object

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

- ## Field Details

  - ### tokens

    public final List<SyntaxToken> tokens
    Ordered, non-overlapping tokens for the line.

  - ### endState

    public final int endState
    Opaque state passed to the highlighter for the next line.

- ## Constructor Details

  - ### SyntaxHighlightResult

    public SyntaxHighlightResult(List<SyntaxToken> tokens, int endState)
    Creates a line result.