Examples of Keyword


Examples of org.eclipse.xtext.Keyword

  protected void configureFormatting(final FormattingConfig c) {
    List<Pair<Keyword, Keyword>> _findKeywordPairs = this._targetPlatformGrammarAccess.findKeywordPairs("{", "}");
    for (final Pair<Keyword, Keyword> pair : _findKeywordPairs) {
      {
        FormattingConfig.IndentationLocatorStart _setIndentationIncrement = c.setIndentationIncrement();
        Keyword _first = pair.getFirst();
        _setIndentationIncrement.after(_first);
        FormattingConfig.IndentationLocatorEnd _setIndentationDecrement = c.setIndentationDecrement();
        Keyword _second = pair.getSecond();
        _setIndentationDecrement.before(_second);
        FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1, 1, 2);
        Keyword _first_1 = pair.getFirst();
        _setLinewrap.after(_first_1);
        FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1, 1, 2);
        Keyword _second_1 = pair.getSecond();
        _setLinewrap_1.before(_second_1);
        FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(1, 2, 2);
        Keyword _second_2 = pair.getSecond();
        _setLinewrap_2.after(_second_2);
      }
    }
    List<Keyword> _findKeywords = this._targetPlatformGrammarAccess.findKeywords(",");
    for (final Keyword comma : _findKeywords) {
      {
        FormattingConfig.NoSpaceLocator _setNoSpace = c.setNoSpace();
        _setNoSpace.before(comma);
        FormattingConfig.SpaceLocator _setSpace = c.setSpace(" ");
        _setSpace.after(comma);
      }
    }
    FormattingConfig.NoLinewrapLocator _setNoLinewrap = c.setNoLinewrap();
    TargetPlatformGrammarAccess.LocationElements _locationAccess = this._targetPlatformGrammarAccess.getLocationAccess();
    Assignment _iDAssignment_1_0 = _locationAccess.getIDAssignment_1_0();
    _setNoLinewrap.around(_iDAssignment_1_0);
    FormattingConfig.NoLinewrapLocator _setNoLinewrap_1 = c.setNoLinewrap();
    TargetPlatformGrammarAccess.LocationElements _locationAccess_1 = this._targetPlatformGrammarAccess.getLocationAccess();
    Assignment _uriAssignment_1_1 = _locationAccess_1.getUriAssignment_1_1();
    _setNoLinewrap_1.around(_uriAssignment_1_1);
    FormattingConfig.LinewrapLocator _setLinewrap = c.setLinewrap(1, 1, 2);
    TargetPlatformGrammarAccess.IncludeDeclarationElements _includeDeclarationAccess = this._targetPlatformGrammarAccess.getIncludeDeclarationAccess();
    Keyword _includeKeyword_0 = _includeDeclarationAccess.getIncludeKeyword_0();
    _setLinewrap.before(_includeKeyword_0);
    FormattingConfig.LinewrapLocator _setLinewrap_1 = c.setLinewrap(1, 2, 2);
    TargetPlatformGrammarAccess.LocationElements _locationAccess_2 = this._targetPlatformGrammarAccess.getLocationAccess();
    Keyword _locationKeyword_0 = _locationAccess_2.getLocationKeyword_0();
    _setLinewrap_1.before(_locationKeyword_0);
    FormattingConfig.LinewrapLocator _setLinewrap_2 = c.setLinewrap(1, 1, 2);
    TargetPlatformGrammarAccess.LocationElements _locationAccess_3 = this._targetPlatformGrammarAccess.getLocationAccess();
    Keyword _withKeyword_2_1_0 = _locationAccess_3.getWithKeyword_2_1_0();
    _setLinewrap_2.before(_withKeyword_2_1_0);
    FormattingConfig.LinewrapLocator _setLinewrap_3 = c.setLinewrap(1, 1, 2);
    TargetPlatformGrammarAccess.TargetPlatformElements _targetPlatformAccess = this._targetPlatformGrammarAccess.getTargetPlatformAccess();
    Assignment _contentsAssignment_2 = _targetPlatformAccess.getContentsAssignment_2();
    _setLinewrap_3.after(_contentsAssignment_2);
    FormattingConfig.LinewrapLocator _setLinewrap_4 = c.setLinewrap();
    TargetPlatformGrammarAccess.IUElements _iUAccess = this._targetPlatformGrammarAccess.getIUAccess();
    Assignment _iDAssignment_0 = _iUAccess.getIDAssignment_0();
    _setLinewrap_4.before(_iDAssignment_0);
    FormattingConfig.NoLinewrapLocator _setNoLinewrap_2 = c.setNoLinewrap();
    TargetPlatformGrammarAccess.IUElements _iUAccess_1 = this._targetPlatformGrammarAccess.getIUAccess();
    Assignment _versionAssignment_1_1_0 = _iUAccess_1.getVersionAssignment_1_1_0();
    _setNoLinewrap_2.before(_versionAssignment_1_1_0);
    FormattingConfig.NoLinewrapLocator _setNoLinewrap_3 = c.setNoLinewrap();
    TargetPlatformGrammarAccess.IUElements _iUAccess_2 = this._targetPlatformGrammarAccess.getIUAccess();
    Assignment _versionAssignment_1_1_1 = _iUAccess_2.getVersionAssignment_1_1_1();
    _setNoLinewrap_3.before(_versionAssignment_1_1_1);
    FormattingConfig.NoSpaceLocator _setNoSpace = c.setNoSpace();
    TargetPlatformGrammarAccess.IUElements _iUAccess_3 = this._targetPlatformGrammarAccess.getIUAccess();
    Keyword _semicolonKeyword_1_0_0 = _iUAccess_3.getSemicolonKeyword_1_0_0();
    _setNoSpace.around(_semicolonKeyword_1_0_0);
    FormattingConfig.NoSpaceLocator _setNoSpace_1 = c.setNoSpace();
    TargetPlatformGrammarAccess.IUElements _iUAccess_4 = this._targetPlatformGrammarAccess.getIUAccess();
    Keyword _equalsSignKeyword_1_0_2 = _iUAccess_4.getEqualsSignKeyword_1_0_2();
    _setNoSpace_1.around(_equalsSignKeyword_1_0_2);
    FormattingConfig.NoSpaceLocator _setNoSpace_2 = c.setNoSpace();
    TargetPlatformGrammarAccess.VersionRangeElements _versionRangeAccess = this._targetPlatformGrammarAccess.getVersionRangeAccess();
    Keyword _leftParenthesisKeyword_0_0_0 = _versionRangeAccess.getLeftParenthesisKeyword_0_0_0();
    _setNoSpace_2.around(_leftParenthesisKeyword_0_0_0);
    FormattingConfig.NoSpaceLocator _setNoSpace_3 = c.setNoSpace();
    TargetPlatformGrammarAccess.VersionRangeElements _versionRangeAccess_1 = this._targetPlatformGrammarAccess.getVersionRangeAccess();
    Keyword _leftSquareBracketKeyword_0_0_1 = _versionRangeAccess_1.getLeftSquareBracketKeyword_0_0_1();
    _setNoSpace_3.around(_leftSquareBracketKeyword_0_0_1);
    FormattingConfig.NoSpaceLocator _setNoSpace_4 = c.setNoSpace();
    TargetPlatformGrammarAccess.VersionRangeElements _versionRangeAccess_2 = this._targetPlatformGrammarAccess.getVersionRangeAccess();
    Keyword _rightParenthesisKeyword_0_4_0 = _versionRangeAccess_2.getRightParenthesisKeyword_0_4_0();
    _setNoSpace_4.around(_rightParenthesisKeyword_0_4_0);
    FormattingConfig.NoSpaceLocator _setNoSpace_5 = c.setNoSpace();
    TargetPlatformGrammarAccess.VersionRangeElements _versionRangeAccess_3 = this._targetPlatformGrammarAccess.getVersionRangeAccess();
    Keyword _rightSquareBracketKeyword_0_4_1 = _versionRangeAccess_3.getRightSquareBracketKeyword_0_4_1();
    _setNoSpace_5.around(_rightSquareBracketKeyword_0_4_1);
    FormattingConfig.LinewrapLocator _setLinewrap_5 = c.setLinewrap(0, 1, 2);
    TerminalRule _sL_COMMENTRule = this._targetPlatformGrammarAccess.getSL_COMMENTRule();
    _setLinewrap_5.before(_sL_COMMENTRule);
    FormattingConfig.LinewrapLocator _setLinewrap_6 = c.setLinewrap(0, 1, 2);
View Full Code Here

Examples of org.eclipse.xtext.Keyword

    BidiTreeIterable<INode> _asTreeIterable = node.getAsTreeIterable();
    final Function1<INode, Boolean> _function = new Function1<INode, Boolean>() {
      public Boolean apply(final INode it) {
        EObject _grammarElement = it.getGrammarElement();
        TargetPlatformGrammarAccess.IUElements _iUAccess = TargetPlatformValidator.this.grammarAccess.getIUAccess();
        Keyword _semicolonKeyword_1_0_0 = _iUAccess.getSemicolonKeyword_1_0_0();
        return Boolean.valueOf(Objects.equal(_grammarElement, _semicolonKeyword_1_0_0));
      }
    };
    final INode semicolonKeywordRule = IterableExtensions.<INode>findFirst(_asTreeIterable, _function);
    BidiTreeIterable<INode> _asTreeIterable_1 = node.getAsTreeIterable();
    final Function1<INode, Boolean> _function_1 = new Function1<INode, Boolean>() {
      public Boolean apply(final INode it) {
        EObject _grammarElement = it.getGrammarElement();
        TargetPlatformGrammarAccess.IUElements _iUAccess = TargetPlatformValidator.this.grammarAccess.getIUAccess();
        Keyword _equalsSignKeyword_1_0_2 = _iUAccess.getEqualsSignKeyword_1_0_2();
        return Boolean.valueOf(Objects.equal(_grammarElement, _equalsSignKeyword_1_0_2));
      }
    };
    final INode equalSignKeywordRule = IterableExtensions.<INode>findFirst(_asTreeIterable_1, _function_1);
    boolean _notEquals = (!Objects.equal(semicolonKeywordRule, null));
View Full Code Here

Examples of org.eclipse.xtext.Keyword

 
  public void complete_TargetPlatform(final EObject model, final RuleCall ruleCall, final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
    INode _currentNode = context.getCurrentNode();
    EObject _grammarElement = _currentNode.getGrammarElement();
    TargetPlatformGrammarAccess.TargetPlatformElements _targetPlatformAccess = this.grammarAccess.getTargetPlatformAccess();
    Keyword _targetKeyword_0 = _targetPlatformAccess.getTargetKeyword_0();
    boolean _notEquals = (!Objects.equal(_grammarElement, _targetKeyword_0));
    if (_notEquals) {
      TargetPlatformGrammarAccess.TargetPlatformElements _targetPlatformAccess_1 = this.grammarAccess.getTargetPlatformAccess();
      Keyword _targetKeyword_0_1 = _targetPlatformAccess_1.getTargetKeyword_0();
      String _value = _targetKeyword_0_1.getValue();
      final String proposalPrefix = (_value + " \"");
      final String proposalText = ((proposalPrefix + TargetPlatformProposalProvider.TARGET_PLATFORM__NAME_PLACEHOLDER) + "\"");
      ITextViewer _viewer = context.getViewer();
      StyledText _textWidget = _viewer.getTextWidget();
      String _lineDelimiter = _textWidget.getLineDelimiter();
View Full Code Here

Examples of org.eclipse.xtext.Keyword

    String textProposal = null;
    int offset = 0;
    INode _currentNode = context.getCurrentNode();
    EObject _grammarElement = _currentNode.getGrammarElement();
    TargetPlatformGrammarAccess.TargetPlatformElements _targetPlatformAccess = this.grammarAccess.getTargetPlatformAccess();
    Keyword _targetKeyword_0 = _targetPlatformAccess.getTargetKeyword_0();
    boolean _equals = Objects.equal(_grammarElement, _targetKeyword_0);
    if (_equals) {
      StringConcatenation _builder = new StringConcatenation();
      _builder.append(" ");
      _builder.append("\"");
View Full Code Here

Examples of org.eclipse.xtext.Keyword

    }
  }
 
  private void templateLocation(final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
    TargetPlatformGrammarAccess.LocationElements _locationAccess = this.grammarAccess.getLocationAccess();
    Keyword _locationKeyword_0 = _locationAccess.getLocationKeyword_0();
    String _value = _locationKeyword_0.getValue();
    final String proposalPrefix = (_value + " \"");
    final String proposalText = ((proposalPrefix + TargetPlatformProposalProvider.LOCATION__URI_PLACEHOLDER) + "\"");
    ITextViewer _viewer = context.getViewer();
    StyledText _textWidget = _viewer.getTextWidget();
    String _lineDelimiter = _textWidget.getLineDelimiter();
View Full Code Here

Examples of org.eclipse.xtext.Keyword

    acceptor.accept(p);
  }
 
  private void templateIncludeDeclaration(final ContentAssistContext context, final ICompletionProposalAcceptor acceptor) {
    TargetPlatformGrammarAccess.IncludeDeclarationElements _includeDeclarationAccess = this.grammarAccess.getIncludeDeclarationAccess();
    Keyword _includeKeyword_0 = _includeDeclarationAccess.getIncludeKeyword_0();
    String _value = _includeKeyword_0.getValue();
    final String proposalPrefix = (_value + " \"");
    final String proposalText = ((proposalPrefix + TargetPlatformProposalProvider.INCLUDE_DECLARATION__URI_PLACEHOLDER) + "\"");
    ITextViewer _viewer = context.getViewer();
    StyledText _textWidget = _viewer.getTextWidget();
    String _lineDelimiter = _textWidget.getLineDelimiter();
View Full Code Here

Examples of org.eclipse.xtext.Keyword

  }

  public String imageFor(Object o) {
    String imageName = null;
    if (o instanceof Keyword) {
      Keyword keyword = (Keyword) o;
      imageName = keyword.getValue().toLowerCase();
    } else if (o instanceof CommonKeyword) {
      CommonKeyword keyword = (CommonKeyword) o;
      imageName = keyword.toString();
    } else if (o instanceof String) {
      imageName = (String) o;
    } else if (o instanceof MessageField) {
      MessageField field = (MessageField) o;
      Modifier modifier = field.getModifier();
View Full Code Here

Examples of org.geoserver.catalog.Keyword

            fail( "adding without id should throw exception" );
        }
        catch( Exception e ) {};
       
        ((ServiceInfoImpl)service).setId( "id" );
        service.getKeywords().add(new Keyword("keyword"));
        geoServer.add( service );

        assertEquals(service.getKeywords(), geoServer.getService("id", ServiceInfo.class).getKeywords());

        ServiceInfo s2 = geoServer.getFactory().createService();
View Full Code Here

Examples of org.hibernate.search.annotations.Keyword

      throw new HibernateException( "No document id for: " + clazz.getName() );
    }
  }

  private void initializeMember(XProperty member) {
    Keyword keywordAnn = member.getAnnotation( Keyword.class );
    if ( keywordAnn != null ) {
      String name = BinderHelper.getAttributeName( member, keywordAnn.name() );
      if ( keywordAnn.id() ) {
        idKeywordName = name;
        idBoost = getBoost( member );
        FieldBridge fieldBridge = BridgeFactory.guessType( member );
        if ( fieldBridge instanceof TwoWayFieldBridge ) {
          idBridge = (TwoWayFieldBridge) fieldBridge;
View Full Code Here

Examples of org.jooq.Keyword

        testGetSQL0(q, "select 1, 'A' from dual");
    }

    @Test
    public void testKeywords() {
        Keyword keyword = DSL.keyword("Abc");
        Field<?> f = DSL.field("{0} Untouched {Xx} Untouched {1}", keyword, keyword);

        DSLContext def = DSL.using(MYSQL);
        DSLContext lower = DSL.using(MYSQL, new Settings().withRenderKeywordStyle(LOWER));
        DSLContext upper = DSL.using(MYSQL, new Settings().withRenderKeywordStyle(UPPER));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.