/** * Fetch a tag. Tags take a complex form. * * @see <a href="http://www.yaml.org/spec/1.1/#id861700"></a> */ private void fetchTag() { // TAG could start a simple key. savePossibleSimpleKey(); // No simple keys after TAG. this.allowSimpleKey = false; // Scan and add TAG. Token tok = scanTag(); this.tokens.add(tok); }
/** * Fetch a plain scalar. */ private void fetchPlain() { // A plain scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after plain scalars. But note that `scan_plain` will // change this flag if the scan is finished at the beginning of the // line. this.allowSimpleKey = false; // Scan and add SCALAR. May change `allow_simple_key`. Token tok = scanPlain(); this.tokens.add(tok); }
/** * Fetch a flow scalar (single- or double-quoted). * * @see <a href="http://www.yaml.org/spec/1.1/#id863975"></a> * * @param style */ private void fetchFlowScalar(char style) { // A flow scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after flow scalars. this.allowSimpleKey = false; // Scan and add SCALAR. Token tok = scanFlowScalar(style); this.tokens.add(tok); }
/** * Fetch an anchor. Anchors take the form: * * <pre> * &(anchor name) * </pre> * * @see <a href="http://www.yaml.org/spec/1.1/#id863390"></a> */ private void fetchAnchor() { // ANCHOR could start a simple key. savePossibleSimpleKey(); // No simple keys after ANCHOR. this.allowSimpleKey = false; // Scan and add ANCHOR. Token tok = scanAnchor(true); this.tokens.add(tok); }
/** * Fetch an alias, which is a reference to an anchor. Aliases take the * format: * * <pre> * *(anchor name) * </pre> * * @see <a href="http://www.yaml.org/spec/1.1/#id863390"></a> */ private void fetchAlias() { // ALIAS could be a simple key. savePossibleSimpleKey(); // No simple keys after ALIAS. this.allowSimpleKey = false; // Scan and add ALIAS. Token tok = scanAnchor(false); this.tokens.add(tok); }
/** * Fetch a tag. Tags take a complex form. * * @see <a href="http://www.yaml.org/spec/1.1/#id861700"></a> */ private void fetchTag() { // TAG could start a simple key. savePossibleSimpleKey(); // No simple keys after TAG. this.allowSimpleKey = false; // Scan and add TAG. Token tok = scanTag(); this.tokens.add(tok); }
/** * Fetch a plain scalar. */ private void fetchPlain() { // A plain scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after plain scalars. But note that `scan_plain` will // change this flag if the scan is finished at the beginning of the // line. this.allowSimpleKey = false; // Scan and add SCALAR. May change `allow_simple_key`. Token tok = scanPlain(); this.tokens.add(tok); }
/** * Fetch a tag. Tags take a complex form. * * @see <a href="http://www.yaml.org/spec/1.1/#id861700"></a> */ private void fetchTag() { // TAG could start a simple key. savePossibleSimpleKey(); // No simple keys after TAG. this.allowSimpleKey = false; // Scan and add TAG. Token tok = scanTag(); this.tokens.add(tok); }
/** * Fetch a tag. Tags take a complex form. * * @see http://www.yaml.org/spec/1.1/#id861700 */ private void fetchTag() { // TAG could start a simple key. savePossibleSimpleKey(); // No simple keys after TAG. this.allowSimpleKey = false; // Scan and add TAG. Token tok = scanTag(); this.tokens.add(tok); }
/** * Fetch a plain scalar. */ private void fetchPlain() { // A plain scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after plain scalars. But note that `scan_plain` will // change this flag if the scan is finished at the beginning of the // line. this.allowSimpleKey = false; // Scan and add SCALAR. May change `allow_simple_key`. Token tok = scanPlain(); this.tokens.add(tok); }
/** * Fetch a plain scalar. */ private void fetchPlain() { // A plain scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after plain scalars. But note that `scan_plain` will // change this flag if the scan is finished at the beginning of the // line. this.allowSimpleKey = false; // Scan and add SCALAR. May change `allow_simple_key`. Token tok = scanPlain(); this.tokens.add(tok); }
/** * Fetch a flow scalar (single- or double-quoted). * * @see <a href="http://www.yaml.org/spec/1.1/#id863975"></a> * * @param style */ private void fetchFlowScalar(char style) { // A flow scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after flow scalars. this.allowSimpleKey = false; // Scan and add SCALAR. Token tok = scanFlowScalar(style); this.tokens.add(tok); }
/** * Fetch a flow scalar (single- or double-quoted). * * @see http://www.yaml.org/spec/1.1/#id863975 * * @param style */ private void fetchFlowScalar(char style) { // A flow scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after flow scalars. this.allowSimpleKey = false; // Scan and add SCALAR. Token tok = scanFlowScalar(style); this.tokens.add(tok); }
/** * Fetch a flow scalar (single- or double-quoted). * * @see <a href="http://www.yaml.org/spec/1.1/#id863975"></a> * * @param style */ private void fetchFlowScalar(char style) { // A flow scalar could be a simple key. savePossibleSimpleKey(); // No simple keys after flow scalars. this.allowSimpleKey = false; // Scan and add SCALAR. Token tok = scanFlowScalar(style); this.tokens.add(tok); }
/** * Fetch an anchor. Anchors take the form: * * <pre> * &(anchor name) * </pre> * * @see <a href="http://www.yaml.org/spec/1.1/#id863390"></a> */ private void fetchAnchor() { // ANCHOR could start a simple key. savePossibleSimpleKey(); // No simple keys after ANCHOR. this.allowSimpleKey = false; // Scan and add ANCHOR. Token tok = scanAnchor(true); this.tokens.add(tok); }
/** * Fetch an anchor. Anchors take the form: * * <pre> * &(anchor name) * </pre> * * @see <a href="http://www.yaml.org/spec/1.1/#id863390"></a> */ private void fetchAnchor() { // ANCHOR could start a simple key. savePossibleSimpleKey(); // No simple keys after ANCHOR. this.allowSimpleKey = false; // Scan and add ANCHOR. Token tok = scanAnchor(true); this.tokens.add(tok); }
/** * Fetch an anchor. Anchors take the form: * * <pre> * &(anchor name) * </pre> * * @see http://www.yaml.org/spec/1.1/#id863390 */ private void fetchAnchor() { // ANCHOR could start a simple key. savePossibleSimpleKey(); // No simple keys after ANCHOR. this.allowSimpleKey = false; // Scan and add ANCHOR. Token tok = scanAnchor(true); this.tokens.add(tok); }
/** * Fetch an alias, which is a reference to an anchor. Aliases take the * format: * * <pre> * *(anchor name) * </pre> * * @see <a href="http://www.yaml.org/spec/1.1/#id863390"></a> */ private void fetchAlias() { // ALIAS could be a simple key. savePossibleSimpleKey(); // No simple keys after ALIAS. this.allowSimpleKey = false; // Scan and add ALIAS. Token tok = scanAnchor(false); this.tokens.add(tok); }
/** * Fetch an alias, which is a reference to an anchor. Aliases take the * format: * * <pre> * *(anchor name) * </pre> * * @see http://www.yaml.org/spec/1.1/#id863390 */ private void fetchAlias() { // ALIAS could be a simple key. savePossibleSimpleKey(); // No simple keys after ALIAS. this.allowSimpleKey = false; // Scan and add ALIAS. Token tok = scanAnchor(false); this.tokens.add(tok); }