Package com.dubture.twig.core.parser.ast.node

Examples of com.dubture.twig.core.parser.ast.node.StringLiteral


       
        if (extendsBlock == null) {
            return;
        }
       
        StringLiteral literal = (StringLiteral) extendsBlock.getFirstChild();
       
        if (literal == null) {
            return;
        }
       
        String path = literal.getValue();
        List<ITemplateResolver> providers = ExtensionManager.getInstance().getTemplateProviders();
       
        String prefix = context.getPrefix();
        SourceRange range = getReplacementRange(context);
       
View Full Code Here


                    } else if (TwigCoreConstants.EXTENDS.equals(block.getName().getValue())) {

                        Statement first = block.getFirstChild();

                        if (first instanceof StringLiteral) {
                            StringLiteral parent = (StringLiteral) first;
                            String display = TwigCoreConstants.EXTENDS + " " + parent.getValue();
                            fRequestor.acceptPackage(block.sourceStart(),
                                    block.sourceEnd(), display);
                        }
                    }
                    return false;
View Full Code Here

              Statement RESULT = null;
    int stringleft = ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).left;
    int stringright = ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).right;
    String string = (String)((java_cup.runtime.Symbol) CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).value;
   
                RESULT = new StringLiteral(stringleft, stringright, string);
             
              CUP$TwigAstParser$result = new java_cup.runtime.Symbol(8/*statement*/, ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).left, ((java_cup.runtime.Symbol)CUP$TwigAstParser$stack.elementAt(CUP$TwigAstParser$top-0)).right, RESULT);
            }
          return CUP$TwigAstParser$result;

View Full Code Here

       
        if (statement == null) {
            return null;
        }
       
        StringLiteral name = (StringLiteral) statement.getFirstChild();
       
        if (name == null) {
            return null;
        }
       
        return name.getValue();
       
    }
View Full Code Here

TOP

Related Classes of com.dubture.twig.core.parser.ast.node.StringLiteral

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.