use of org.jetbrains.plugins.groovy.lang.psi.stubs.GrAnnotationStub in project intellij-community by JetBrains.
the class GrAnnotationImpl method getShortName.
@Override
@NotNull
public String getShortName() {
final GrAnnotationStub stub = getStub();
if (stub != null) {
return stub.getPsiElement().getShortName();
}
final String referenceName = getClassReference().getReferenceName();
assert referenceName != null;
return referenceName;
}
use of org.jetbrains.plugins.groovy.lang.psi.stubs.GrAnnotationStub in project intellij-community by JetBrains.
the class GrAnnotationImpl method getQualifiedName.
@Override
@Nullable
@NonNls
public String getQualifiedName() {
final GrAnnotationStub stub = getStub();
if (stub != null) {
return stub.getPsiElement().getQualifiedName();
}
final GrCodeReferenceElement nameRef = getClassReference();
final PsiElement resolved = nameRef.resolve();
if (resolved instanceof PsiClass)
return ((PsiClass) resolved).getQualifiedName();
return null;
}
Aggregations