blob: c58a967cca33c1d0393e2dca2def8d91c5563071 [file] [log] [blame]
/*
* 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 AnchorToken extends Token {
private final String value;
public AnchorToken(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 "<anchor>";
}
}