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

项目:intellij-ce-playground    文件:PsiNameValuePairImpl.java   
@Override
public String getName() {
  PsiNameValuePairStub stub = getStub();
  if (stub == null) {
    PsiIdentifier nameIdentifier = getNameIdentifier();
    return nameIdentifier == null ? null : nameIdentifier.getText();
  }
  else {
    return stub.getName();
  }
}
项目:intellij-ce-playground    文件:PsiNameValuePairImpl.java   
@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();
  }
}
项目:tools-idea    文件:PsiNameValuePairImpl.java   
@Override
public String getName() {
  PsiNameValuePairStub stub = getStub();
  if (stub == null) {
    PsiIdentifier nameIdentifier = getNameIdentifier();
    return nameIdentifier == null ? null : nameIdentifier.getText();
  }
  else {
    return stub.getName();
  }
}
项目:consulo-java    文件:PsiNameValuePairImpl.java   
@Override
public String getName() {
  PsiNameValuePairStub stub = getStub();
  if (stub == null) {
    PsiIdentifier nameIdentifier = getNameIdentifier();
    return nameIdentifier == null ? null : nameIdentifier.getText();
  }
  else {
    return stub.getName();
  }
}
项目:intellij-ce-playground    文件:PsiNameValuePairImpl.java   
public PsiNameValuePairImpl(@NotNull PsiNameValuePairStub stub) {
  super(stub, JavaStubElementTypes.NAME_VALUE_PAIR);
}
项目:tools-idea    文件:PsiNameValuePairImpl.java   
public PsiNameValuePairImpl(@NotNull PsiNameValuePairStub stub) {
  super(stub, JavaStubElementTypes.NAME_VALUE_PAIR);
}
项目:tools-idea    文件:PsiNameValuePairImpl.java   
@Override
public String getLiteralValue() {
  PsiNameValuePairStub stub = getStub();
  return stub == null ? null : stub.getValue();
}
项目:consulo-java    文件:PsiNameValuePairImpl.java   
public PsiNameValuePairImpl(@NotNull PsiNameValuePairStub stub) {
  super(stub, JavaStubElementTypes.NAME_VALUE_PAIR);
}
项目:consulo-java    文件:PsiNameValuePairImpl.java   
@Override
public String getLiteralValue() {
  PsiNameValuePairStub stub = getStub();
  return stub == null ? null : stub.getValue();
}