org.yaml.snakeyaml.tokens

## Class Token

- java.lang.Object
- - org.yaml.snakeyaml.tokens.Token

Direct Known Subclasses:
  AliasToken, AnchorToken, BlockEndToken, BlockEntryToken, BlockMappingStartToken, BlockSequenceStartToken, DirectiveToken, DocumentEndToken, DocumentStartToken, FlowEntryToken, FlowMappingEndToken, FlowMappingStartToken, FlowSequenceEndToken, FlowSequenceStartToken, KeyToken, ScalarToken, StreamEndToken, StreamStartToken, TagToken, ValueToken

    public abstract class Token
    extends java.lang.Object

### Nested Class Summary

Nested Classes
`static class` `Token.ID`

### Constructor Summary

Constructors
Constructor and Description
`Token(Mark startMark, Mark endMark)`

### Method Summary

Methods
`boolean` `equals(java.lang.Object obj)`
`protected java.lang.String` `getArguments()`
`Mark` `getEndMark()`
`Mark` `getStartMark()`
`abstract Token.ID` `getTokenId()` For error reporting.
`int` `hashCode()`
`java.lang.String` `toString()`

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

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

### Constructor Detail

#### Token

    public Token(Mark startMark,
         Mark endMark)

### Method Detail

#### toString

    public java.lang.String toString()

Overrides:
  `toString` in class `java.lang.Object`

#### getStartMark

    public Mark getStartMark()

#### getEndMark

    public Mark getEndMark()

#### getArguments

    protected java.lang.String getArguments()

See Also:
  "__repr__ for Token in PyYAML"

#### getTokenId

    public abstract Token.ID getTokenId()

For error reporting.

See Also:
  "class variable 'id' in PyYAML"

#### equals

    public boolean equals(java.lang.Object obj)

Overrides:
  `equals` in class `java.lang.Object`

#### hashCode

    public int hashCode()

Overrides:
  `hashCode` in class `java.lang.Object`