Package org.yaml.snakeyaml.tokens
Class DirectiveToken<T>
- java.lang.Object
-
- org.yaml.snakeyaml.tokens.Token
-
- org.yaml.snakeyaml.tokens.DirectiveToken<T>
-
- Type Parameters:
T- it is either Integer for the YAML directive or String for the TAG directive
public final class DirectiveToken<T> extends Token
Directive Token
-
-
Constructor Summary
Constructors Constructor Description DirectiveToken(java.lang.String name, java.util.List<T> value, Mark startMark, Mark endMark)Create
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()getterToken.IDgetTokenId()getterjava.util.List<T>getValue()getter-
Methods inherited from class org.yaml.snakeyaml.tokens.Token
getEndMark, getStartMark
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
getter- Returns:
- name
-
getValue
public java.util.List<T> getValue()
getter- Returns:
- value
-
getTokenId
public Token.ID getTokenId()
getter- Specified by:
getTokenIdin classToken- Returns:
- its identity
- See Also:
- "class variable 'id' in PyYAML"
-
-