@Override public boolean isOnDemand(){ final PsiImportStatementStub stub = getStub(); if (stub != null) { return stub.isOnDemand(); } return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null; }
@Override public PsiJavaCodeReferenceElement getImportReference() { PsiUtilCore.ensureValid(this); final PsiImportStatementStub stub = getStub(); if (stub != null) { return stub.getReference(); } return (PsiJavaCodeReferenceElement)calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_REFERENCE); }
@Override public String getQualifiedName() { PsiImportStatementStub stub = getStub(); if (stub != null) { return stub.getImportReferenceText(); } final PsiJavaCodeReferenceElement reference = getImportReference(); return reference == null ? null : reference.getCanonicalText(); }
@Override public boolean isOnDemand() { final PsiImportStatementStub stub = getStub(); if(stub != null) { return stub.isOnDemand(); } return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null; }
public PsiImportStaticStatementImpl(final PsiImportStatementStub stub) { super(stub, JavaStubElementTypes.IMPORT_STATIC_STATEMENT); }
protected PsiImportStatementBaseImpl(final PsiImportStatementStub stub, final IStubElementType type) { super(stub, type); }
public PsiImportStatementImpl(final PsiImportStatementStub stub) { super(stub, JavaStubElementTypes.IMPORT_STATEMENT); }