@Override public String getName() { PsiNameValuePairStub stub = getStub(); if (stub == null) { PsiIdentifier nameIdentifier = getNameIdentifier(); return nameIdentifier == null ? null : nameIdentifier.getText(); } else { return stub.getName(); } }
@Override public String getLiteralValue() { PsiNameValuePairStub stub = getStub(); if (stub == null) { PsiAnnotationMemberValue value = getValue(); return value instanceof PsiLiteralExpression ? StringUtil.unquoteString(value.getText()) : null; } else { return stub.getValue(); } }
public PsiNameValuePairImpl(@NotNull PsiNameValuePairStub stub) { super(stub, JavaStubElementTypes.NAME_VALUE_PAIR); }
@Override public String getLiteralValue() { PsiNameValuePairStub stub = getStub(); return stub == null ? null : stub.getValue(); }