Package com.esotericsoftware.yamlbeans.tokenizer

Examples of com.esotericsoftware.yamlbeans.tokenizer.TagToken


      public Event produce () {
        String anchor = null, tagHandle = null, tagSuffix = null;
        if (tokenizer.peekNextTokenType() == ANCHOR) {
          anchor = ((AnchorToken)tokenizer.getNextToken()).getInstanceName();
          if (tokenizer.peekNextTokenType() == TAG) {
            TagToken tagToken = (TagToken)tokenizer.getNextToken();
            tagHandle = tagToken.getHandle();
            tagSuffix = tagToken.getSuffix();
          }
        } else if (tokenizer.peekNextTokenType() == TAG) {
          TagToken tagToken = (TagToken)tokenizer.getNextToken();
          tagHandle = tagToken.getHandle();
          tagSuffix = tagToken.getSuffix();
          if (tokenizer.peekNextTokenType() == ANCHOR) anchor = ((AnchorToken)tokenizer.getNextToken()).getInstanceName();
        }
        String tag = null;
        if (tagHandle != null && !tagHandle.equals("!")) {
          if (!tagHandles.containsKey(tagHandle)) throw new ParserException("Undefined tag handle: " + tagHandle);
View Full Code Here


      public Event produce () {
        String anchor = null, tagHandle = null, tagSuffix = null;
        if (tokenizer.peekNextTokenType() == ANCHOR) {
          anchor = ((AnchorToken)tokenizer.getNextToken()).getInstanceName();
          if (tokenizer.peekNextTokenType() == TAG) {
            TagToken tagToken = (TagToken)tokenizer.getNextToken();
            tagHandle = tagToken.getHandle();
            tagSuffix = tagToken.getSuffix();
          }
        } else if (tokenizer.peekNextTokenType() == TAG) {
          TagToken tagToken = (TagToken)tokenizer.getNextToken();
          tagHandle = tagToken.getHandle();
          tagSuffix = tagToken.getSuffix();
          if (tokenizer.peekNextTokenType() == ANCHOR) anchor = ((AnchorToken)tokenizer.getNextToken()).getInstanceName();
        }
        String tag = null;
        if (tagHandle != null && !tagHandle.equals("!")) {
          if (!tagHandles.containsKey(tagHandle)) throw new ParserException("Undefined tag handle: " + tagHandle);
View Full Code Here

TOP

Related Classes of com.esotericsoftware.yamlbeans.tokenizer.TagToken

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.