Examples of ClDefStub


Examples of org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub

  }

  @Override
  @Nullable
  public String getName() {
    ClDefStub stub = getStub();
    if (stub != null) {
      return stub.getName();
    }

    return getDefinedName();
  }
View Full Code Here

Examples of org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub

    return this;
  }

  @Override
  public int getTextOffset() {
    ClDefStub stub = getStub();
    if (stub != null) {
      return stub.getTextOffset();
    }

    final ClSymbol symbol = getNameSymbol();
    if (symbol != null) {
      return symbol.getTextRange().getStartOffset();
View Full Code Here

Examples of org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub

  }

  public ClDefStub deserialize(StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef ref = dataStream.readName();
    int textOffset = dataStream.readInt();
    return new ClDefStub(parentStub, ref, this, textOffset);
  }
View Full Code Here

Examples of org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub

  public ClDef createPsi(ClDefStub stub) {
    return new ClDefImpl(stub, ClojureElementTypes.DEF);
  }

  public ClDefStub createStub(ClDef psi, StubElement parentStub) {
    return new ClDefStub(parentStub, StringRef.fromString(psi.getName()), ClojureElementTypes.DEF, psi.getTextOffset());
  }
View Full Code Here

Examples of org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub

  }

  public ClDefStub deserialize(StubInputStream dataStream, StubElement parentStub) throws IOException {
    StringRef ref = dataStream.readName();
    int textOffset = dataStream.readInt();
    return new ClDefStub(parentStub, ref, this, textOffset);
  }
View Full Code Here

Examples of org.jetbrains.plugins.clojure.psi.stubs.api.ClDefStub

  public ClDef createPsi(ClDefStub stub) {
    return new ClDefnMethodImpl(stub, ClojureElementTypes.DEFMETHOD);
  }

  public ClDefStub createStub(ClDef psi, StubElement parentStub) {
    return new ClDefStub(parentStub, StringRef.fromString(psi.getName()), ClojureElementTypes.DEFMETHOD, psi.getTextOffset());
  }
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.