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

Source Code of org.jetbrains.plugins.clojure.psi.stubs.elements.ClListElementType

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

import com.intellij.lang.ASTNode;
import com.intellij.psi.PsiElement;
import com.intellij.psi.stubs.*;
import org.jetbrains.plugins.clojure.psi.ClStubElementType;
import org.jetbrains.plugins.clojure.psi.impl.list.ClListImpl;
import org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub;

import java.io.IOException;

/**
* @author peter
*/
public class ClListElementType extends ClStubElementType<EmptyStub, ClListImpl> {

  public ClListElementType() {
    super("list");
  }

  public void serialize(EmptyStub stub, StubOutputStream dataStream) throws IOException {
  }

  public EmptyStub deserialize(StubInputStream dataStream, StubElement parentStub) throws IOException {
    return new EmptyStub(parentStub, this);
  }

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

  public ClListImpl createPsi(EmptyStub stub) {
    return new ClListImpl(stub, this);
  }

  public EmptyStub createStub(ClListImpl psi, StubElement parentStub) {
    return new EmptyStub(parentStub, this);
  }

}
TOP

Related Classes of org.jetbrains.plugins.clojure.psi.stubs.elements.ClListElementType

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.