Package com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess

Examples of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.ResourceExpressionElements


    final Selector inCompactableResource = Select.containment(resourceCompactable);
    final Selector inASingleBodiesResourceWithTitle = Select.containment(resourceSingleBodyTitle);
    final Selector inASingleBodiesResourceWithoutTitle = Select.containment(resourceSingleBodyNoTitle);

    final ResourceExpressionElements resourceExpressionAccess = grammarAccess.getResourceExpressionAccess();
    final Selector resourceLeftCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("{"));
    final Selector resourceRightCurlyBracket = Select.grammar(resourceExpressionAccess.findKeywords("}"));
    final Selector resourceBodySemicolon = Select.grammar(resourceExpressionAccess.findKeywords(";"));
    final Selector optionalResourceEndBodySemicolon = Select.grammar(
      resourceExpressionAccess.getSemicolonKeyword_0_1_2_2(), //
      resourceExpressionAccess.getSemicolonKeyword_1_3_2());

    final Selector elseAndElsifKeywords = Select.grammar(Iterables.concat(
      grammarAccess.getIfExpressionAccess().findKeywords("else", "elsif"), //
      grammarAccess.getElseIfExpressionAccess().findKeywords("else", "elsif")));
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.ResourceExpressionElements

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.