當前位置: 首頁>>代碼示例>>Java>>正文


Java FlexAdapter類代碼示例

本文整理匯總了Java中com.intellij.lexer.FlexAdapter的典型用法代碼示例。如果您正苦於以下問題:Java FlexAdapter類的具體用法?Java FlexAdapter怎麽用?Java FlexAdapter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


FlexAdapter類屬於com.intellij.lexer包,在下文中一共展示了FlexAdapter類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: XPathLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
private XPathLexer(boolean xpath2Syntax) {
  super(new FlexAdapter(new _XPathLexer(xpath2Syntax) {
    @Override
    protected void readComment() throws IOException {
      final int state = yystate();
      final int start = getTokenStart();
      while (true) {
        final IElementType type = advance();
        if (type == null || type == XPath2TokenTypes.END_COMMENT) {
          break;
        }
      }
      setStart(start);
      yybegin(state);
    }
  }));

  myXPath2Syntax = xpath2Syntax;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:20,代碼來源:XPathLexer.java

示例2: createLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
private static FlexAdapter createLexer() {
    return new FlexAdapter(new _SquirrelLexer() {
        public void reset(final CharSequence buffer, final int start, final int end, final int initialState) {
            super.reset(buffer, start, end, initialState);
            myLeftParenCount = 0;
            myStateStack.clear();
        }
    });
}
 
開發者ID:shvetsgroup,項目名稱:squirrel-lang-idea-plugin,代碼行數:10,代碼來源:SquirrelLexer.java

示例3: parse

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public ASTNode parse(IElementType root_, PsiBuilder builder_) {
    maxRbraceDebt = -1;
    lastCountedTok = -1;
    regressed = false;
    debtPoints.clear();
    builder_.setTokenTypeRemapper(myRemapper);
    lexer =  (_HaskellParsingLexer) ((FlexAdapter) ((PsiBuilderImpl) builder_).getLexer()).getFlex();
    ASTNode node = super.parse(root_, builder_);
    return node;
}
 
開發者ID:carymrobbins,項目名稱:intellij-haskforce,代碼行數:13,代碼來源:HaskellParserWrapper.java

示例4: createLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer createLexer(Project project) {
  return new FlexAdapter(new _AppleScriptLexer(null));
}
 
開發者ID:ant-druha,項目名稱:AppleScript-IDEA,代碼行數:6,代碼來源:AppleScriptParserDefinition.java

示例5: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer getHighlightingLexer() {
  return new FlexAdapter(new _AppleScriptLexer(null));
}
 
開發者ID:ant-druha,項目名稱:AppleScript-IDEA,代碼行數:6,代碼來源:AppleScriptSyntaxHighlighter.java

示例6: createLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer createLexer(Project project) {
    return new FlexAdapter(new _GCMLexer());
}
 
開發者ID:datathings,項目名稱:greycat-idea-plugin,代碼行數:6,代碼來源:GCMParserDefinition.java

示例7: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer getHighlightingLexer() {
    return new FlexAdapter(new _GCMLexer());
}
 
開發者ID:datathings,項目名稱:greycat-idea-plugin,代碼行數:6,代碼來源:GCMSyntaxHighlighter.java

示例8: createLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer createLexer(final Project project) {
    return new FlexAdapter(new ImpexLexer((Reader) null));
}
 
開發者ID:AlexanderBartash,項目名稱:hybris-integration-intellij-idea-plugin,代碼行數:6,代碼來源:ImpexParserDefinition.java

示例9: createLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer createLexer(Project project) {
    NixLexer lxr = new NixLexer((Reader) null);
    return new FlexAdapter(lxr);
}
 
開發者ID:NixOS,項目名稱:nix-idea,代碼行數:7,代碼來源:NixParserDefinition.java

示例10: LuaDocLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
public LuaDocLexer() {
  super(new FlexAdapter(new _LuaDocLexer()),
      TOKENS_TO_MERGE);
}
 
開發者ID:internetisalie,項目名稱:lua-for-idea,代碼行數:5,代碼來源:LuaDocLexer.java

示例11: LuaLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
public LuaLexer() {

        super(new FlexAdapter(new _LuaLexer((Reader) null)),
                TokenSet.create(LONGCOMMENT, LONGSTRING, STRING, SHORTCOMMENT));
    }
 
開發者ID:internetisalie,項目名稱:lua-for-idea,代碼行數:6,代碼來源:LuaLexer.java

示例12: createLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer createLexer(Project project) {
    return new FlexAdapter(new IonLexer((Reader) null));
}
 
開發者ID:amzn,項目名稱:ion-intellij-plugin,代碼行數:6,代碼來源:IonParserDefinition.java

示例13: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer getHighlightingLexer() {
    return new FlexAdapter(new IonLexer((Reader) null));
}
 
開發者ID:amzn,項目名稱:ion-intellij-plugin,代碼行數:6,代碼來源:IonSyntaxHighlighter.java

示例14: getHighlightingLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
@NotNull
@Override
public Lexer getHighlightingLexer() {
       return new YamlHighlightingLexer(new FlexAdapter(new YamlFlexLexer((Reader) null)));
   }
 
開發者ID:vermut,項目名稱:intellij-snakeyaml,代碼行數:6,代碼來源:YamlSyntaxHighlighter.java

示例15: JetLexer

import com.intellij.lexer.FlexAdapter; //導入依賴的package包/類
public JetLexer() {
    super(new FlexAdapter(new _JetLexer()), TokenSet.create(JetTypes.COMMENT));
}
 
開發者ID:jhsx,項目名稱:GoJetPlugin,代碼行數:4,代碼來源:JetLexer.java


注:本文中的com.intellij.lexer.FlexAdapter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。