本文整理汇总了Java中com.intellij.psi.impl.java.stubs.PsiImportStatementStub类的典型用法代码示例。如果您正苦于以下问题:Java PsiImportStatementStub类的具体用法?Java PsiImportStatementStub怎么用?Java PsiImportStatementStub使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PsiImportStatementStub类属于com.intellij.psi.impl.java.stubs包,在下文中一共展示了PsiImportStatementStub类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: isOnDemand
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
@Override
public boolean isOnDemand(){
final PsiImportStatementStub stub = getStub();
if (stub != null) {
return stub.isOnDemand();
}
return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null;
}
示例2: getImportReference
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
@Override
public PsiJavaCodeReferenceElement getImportReference() {
PsiUtilCore.ensureValid(this);
final PsiImportStatementStub stub = getStub();
if (stub != null) {
return stub.getReference();
}
return (PsiJavaCodeReferenceElement)calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_REFERENCE);
}
示例3: getQualifiedName
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
@Override
public String getQualifiedName() {
PsiImportStatementStub stub = getStub();
if (stub != null) {
return stub.getImportReferenceText();
}
final PsiJavaCodeReferenceElement reference = getImportReference();
return reference == null ? null : reference.getCanonicalText();
}
示例4: isOnDemand
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
@Override
public boolean isOnDemand()
{
final PsiImportStatementStub stub = getStub();
if(stub != null)
{
return stub.isOnDemand();
}
return calcTreeElement().findChildByRoleAsPsiElement(ChildRole.IMPORT_ON_DEMAND_DOT) != null;
}
示例5: PsiImportStaticStatementImpl
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
public PsiImportStaticStatementImpl(final PsiImportStatementStub stub) {
super(stub, JavaStubElementTypes.IMPORT_STATIC_STATEMENT);
}
示例6: PsiImportStatementBaseImpl
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
protected PsiImportStatementBaseImpl(final PsiImportStatementStub stub, final IStubElementType type) {
super(stub, type);
}
示例7: PsiImportStatementImpl
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
public PsiImportStatementImpl(final PsiImportStatementStub stub) {
super(stub, JavaStubElementTypes.IMPORT_STATEMENT);
}
示例8: PsiImportStatementBaseImpl
import com.intellij.psi.impl.java.stubs.PsiImportStatementStub; //导入依赖的package包/类
protected PsiImportStatementBaseImpl(final PsiImportStatementStub stub, final IStubElementType type)
{
super(stub, type);
}