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

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


  }

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

    return getDefinedName();
  }
View Full Code Here


    return ImportOwner.processDeclarations(this, processor, place);
  }

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

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

  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());
  }
View Full Code Here

  public ClNs createPsi(ClNsStub stub) {
    return new ClNsImpl(stub, ClojureElementTypes.NS);
  }

  public ClNsStub createStub(ClNs psi, StubElement parentStub) {
    return new ClNsStub(parentStub, StringRef.fromString(psi.getDefinedName()), ClojureElementTypes.NS, psi.getTextOffset());
  }
View Full Code Here

  public ClNs createPsi(ClNsStub stub) {
    return new ClInNsImpl(stub, ClojureElementTypes.CREATE_NS);
  }

  public ClNsStub createStub(ClNs psi, StubElement parentStub) {
    return new ClNsStub(parentStub, StringRef.fromString(psi.getDefinedName()), ClojureElementTypes.CREATE_NS, psi.getTextOffset());
  }
View Full Code Here

  }

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

TOP

Related Classes of org.jetbrains.plugins.clojure.psi.stubs.api.ClNsStub

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.