Package org.jetbrains.plugins.clojure.psi.impl

Examples of org.jetbrains.plugins.clojure.psi.impl.ClKeywordImpl


    return new PsiClassType[0];
  }

  public PsiClass getSuperClass() {
    final ClList ns = getNsElement();
    final ClKeywordImpl key = ClojurePsiUtil.findNamespaceKeyByName(ns, ClojureKeywords.EXTENDS);
    if (key != null) {
      final PsiElement next = ClojurePsiUtil.getNextNonWhiteSpace(key);
      if (next instanceof ClSymbol) {
        ClSymbol symbol = (ClSymbol) next;
        final PsiClass psiClass = JavaPsiFacade.getInstance(getProject()).findClass(symbol.getText(), GlobalSearchScope.allScope(getProject()));
View Full Code Here


    return myFile.getNamespaceElement();
  }

  public PsiClass[] getInterfaces() {
    final ClList ns = getNsElement();
    final ClKeywordImpl key = ClojurePsiUtil.findNamespaceKeyByName(ns, ClojureKeywords.IMPLEMENTS);
    final ArrayList<PsiClass> classes = new ArrayList<PsiClass>();
    final GlobalSearchScope scope = GlobalSearchScope.allScope(getProject());
    final JavaPsiFacade facade = JavaPsiFacade.getInstance(getProject());
    if (key != null) {
      final PsiElement next = ClojurePsiUtil.getNextNonWhiteSpace(key);
View Full Code Here

    StringRef ref = dataStream.readName();
    return new ClKeywordStubImpl(parentStub, ref, this);
  }

  public PsiElement createElement(ASTNode node) {
    return new ClKeywordImpl(node);
  }
View Full Code Here

  public PsiElement createElement(ASTNode node) {
    return new ClKeywordImpl(node);
  }

  public ClKeyword createPsi(ClKeywordStub stub) {
    return new ClKeywordImpl(stub, ClojureElementTypes.KEYWORD);
  }
View Full Code Here

  public static ClKeywordImpl findNamespaceKeyByName(ClList ns, String keyName) {
    final ClList list = ns.findFirstChildByClass(ClList.class);
    if (list == null) return null;
    for (PsiElement element : list.getChildren()) {
      if (element instanceof ClKeywordImpl) {
        ClKeywordImpl key = (ClKeywordImpl) element;
        if (keyName.equals(key.getText())) {
          return key;
        }
      }
    }
    return null;
View Full Code Here

TOP

Related Classes of org.jetbrains.plugins.clojure.psi.impl.ClKeywordImpl

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.