Package com.google.template.soy.msgs.restricted

Examples of com.google.template.soy.msgs.restricted.SoyMsgPlaceholderPart


        // placeholder name.
        if (currRawTextPart != null) {
          currMsgParts.add(new SoyMsgRawTextPart(currRawTextPart));
          currRawTextPart = null;
        }
        currMsgParts.add(new SoyMsgPlaceholderPart(atts.getValue("id")));
      }
    }
View Full Code Here


      if (child instanceof RawTextNode) {
        String rawText = ((RawTextNode) child).getRawText();
        msgParts.add(new SoyMsgRawTextPart(rawText));
      } else if (child instanceof MsgPlaceholderNode) {
        String placeholderName = msgNode.getPlaceholderName((MsgPlaceholderNode) child);
        msgParts.add(new SoyMsgPlaceholderPart(placeholderName));
      } else if (child instanceof MsgPluralRemainderNode) {
        msgParts.add(new SoyMsgPluralRemainderPart(
            msgNode.getPluralVarName(child.getNearestAncestor(MsgPluralNode.class))));
      } else if (child instanceof MsgPluralNode) {
        msgParts.add(buildMsgPartForPlural((MsgPluralNode) child, msgNode));
View Full Code Here

TOP

Related Classes of com.google.template.soy.msgs.restricted.SoyMsgPlaceholderPart

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.