blob: aa0eba8be9d2ceea0d650d61f614851ef3555a4c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
/*
* See LICENSE file in distribution for copyright and licensing information.
*/
package org.yaml.snakeyaml.tokens;
import org.yaml.snakeyaml.error.Mark;
/**
* @see <a href="http://pyyaml.org/wiki/PyYAML">PyYAML</a> for more information
*/
public final class AliasToken extends Token {
private final String value;
public AliasToken(String value, Mark startMark, Mark endMark) {
super(startMark, endMark);
this.value = value;
}
public String getValue() {
return this.value;
}
@Override
protected String getArguments() {
return "value=" + value;
}
@Override
public String getTokenId() {
return "<alias>";
}
}
|