Java 类com.intellij.psi.impl.java.stubs.PsiImportStatementStub 实例源码

项目:intellij-ce-playground    文件:PsiImportStatementBaseImpl.java   
@Override
public boolean isOnDemand(){
  final PsiImportStatementStub stub = getStub();
  if (stub != null) {
    return stub.isOnDemand();
  }

  return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null;
}
项目:intellij-ce-playground    文件:PsiImportStatementBaseImpl.java   
@Override
public PsiJavaCodeReferenceElement getImportReference() {
  PsiUtilCore.ensureValid(this);
  final PsiImportStatementStub stub = getStub();
  if (stub != null) {
    return stub.getReference();
  }
  return (PsiJavaCodeReferenceElement)calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_REFERENCE);
}
项目:intellij-ce-playground    文件:PsiImportStatementImpl.java   
@Override
public String getQualifiedName() {
  PsiImportStatementStub stub = getStub();
  if (stub != null) {
    return stub.getImportReferenceText();
  }
  final PsiJavaCodeReferenceElement reference = getImportReference();
  return reference == null ? null : reference.getCanonicalText();
}
项目:tools-idea    文件:PsiImportStatementBaseImpl.java   
@Override
public boolean isOnDemand(){
  final PsiImportStatementStub stub = getStub();
  if (stub != null) {
    return stub.isOnDemand();
  }

  return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null;
}
项目:tools-idea    文件:PsiImportStatementBaseImpl.java   
@Override
public PsiJavaCodeReferenceElement getImportReference() {
  PsiUtilCore.ensureValid(this);
  final PsiImportStatementStub stub = getStub();
  if (stub != null) {
    return stub.getReference();
  }
  return (PsiJavaCodeReferenceElement)calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_REFERENCE);
}
项目:consulo-java    文件:PsiImportStatementBaseImpl.java   
@Override
public boolean isOnDemand()
{
    final PsiImportStatementStub stub = getStub();
    if(stub != null)
    {
        return stub.isOnDemand();
    }

    return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null;
}
项目:intellij-ce-playground    文件:PsiImportStaticStatementImpl.java   
public PsiImportStaticStatementImpl(final PsiImportStatementStub stub) {
  super(stub, JavaStubElementTypes.IMPORT_STATIC_STATEMENT);
}
项目:intellij-ce-playground    文件:PsiImportStatementBaseImpl.java   
protected PsiImportStatementBaseImpl(final PsiImportStatementStub stub, final IStubElementType type) {
  super(stub, type);
}
项目:intellij-ce-playground    文件:PsiImportStatementImpl.java   
public PsiImportStatementImpl(final PsiImportStatementStub stub) {
  super(stub, JavaStubElementTypes.IMPORT_STATEMENT);
}
项目:tools-idea    文件:PsiImportStaticStatementImpl.java   
public PsiImportStaticStatementImpl(final PsiImportStatementStub stub) {
  super(stub, JavaStubElementTypes.IMPORT_STATIC_STATEMENT);
}
项目:tools-idea    文件:PsiImportStatementBaseImpl.java   
protected PsiImportStatementBaseImpl(final PsiImportStatementStub stub, final IStubElementType type) {
  super(stub, type);
}
项目:tools-idea    文件:PsiImportStatementImpl.java   
public PsiImportStatementImpl(final PsiImportStatementStub stub) {
  super(stub, JavaStubElementTypes.IMPORT_STATEMENT);
}
项目:consulo-java    文件:PsiImportStaticStatementImpl.java   
public PsiImportStaticStatementImpl(final PsiImportStatementStub stub) {
  super(stub, JavaStubElementTypes.IMPORT_STATIC_STATEMENT);
}
项目:consulo-java    文件:PsiImportStatementBaseImpl.java   
protected PsiImportStatementBaseImpl(final PsiImportStatementStub stub, final IStubElementType type)
{
    super(stub, type);
}
项目:consulo-java    文件:PsiImportStatementImpl.java   
public PsiImportStatementImpl(final PsiImportStatementStub stub) {
  super(stub, JavaStubElementTypes.IMPORT_STATEMENT);
}