Package org.jetbrains.plugins.clojure.psi.stubs.elements.ns

Source Code of org.jetbrains.plugins.clojure.psi.stubs.elements.ns.ClInNsElementType

package org.jetbrains.plugins.clojure.psi.stubs.elements.ns;

import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.stubs.StubElement;
import com.intellij.util.io.StringRef;
import org.jetbrains.plugins.clojure.parser.ClojureElementTypes;
import org.jetbrains.plugins.clojure.psi.api.ns.ClNs;
import org.jetbrains.plugins.clojure.psi.impl.ns.ClInNsImpl;
import org.jetbrains.plugins.clojure.psi.stubs.api.ClNsStub;

/**
* @author ilyas
*/
public class ClInNsElementType extends ClNsElementTypeBase {
  public ClInNsElementType() {
    super("in-ns");
  }

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

  public ClNs createPsi(ClNsStub stub) {
    return new ClInNsImpl(stub, ClojureElementTypes.IN_NS);
  }
 
  public ClNsStub createStub(ClNs psi, StubElement parentStub) {
    return new ClNsStub(parentStub, StringRef.fromString(psi.getDefinedName()), ClojureElementTypes.IN_NS, psi.getTextOffset());
  }

}
TOP

Related Classes of org.jetbrains.plugins.clojure.psi.stubs.elements.ns.ClInNsElementType

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.