Class DirectiveToken<T>

java.lang.Object
org.yaml.snakeyaml.tokens.Token
org.yaml.snakeyaml.tokens.DirectiveToken<T>

public final class DirectiveToken<T> extends Token
  • Field Details

    • name

      private final String name
    • value

      private final List<T> value
  • Constructor Details

    • DirectiveToken

      public DirectiveToken(String name, List<T> value, Mark startMark, Mark endMark)
  • Method Details

    • getName

      public String getName()
    • getValue

      public List<T> getValue()
    • getTokenId

      public Token.ID getTokenId()
      Description copied from class: Token
      For error reporting.
      Specified by:
      getTokenId in class Token
      Returns:
      ID of this token
      See Also:
      • "class variable 'id' in PyYAML"