Java 类com.intellij.psi.ImplicitVariable 实例源码

项目:intellij-ce-playground    文件:ImplicitVariableElementInfoFactory.java   
@Override
@Nullable
public SmartPointerElementInfo createElementInfo(@NotNull final PsiElement element, @NotNull PsiFile containingFile) {
  if (element instanceof ImplicitVariable) {
    return new ImplicitVariableInfo((ImplicitVariable) element, containingFile.getProject());
  }
  return null;
}
项目:intellij-ce-playground    文件:ImplicitVariableElementInfoFactory.java   
@Override
public PsiElement restoreElement() {
  ImplicitVariable myVar = (ImplicitVariable)super.restoreElement();
  PsiIdentifier psiIdentifier = myVar.getNameIdentifier();
  if (psiIdentifier == null || psiIdentifier.isValid()) return myVar;
  return null;
}
项目:intellij-ce-playground    文件:ImplicitVariableElementInfoFactory.java   
@Override
public Segment getRange() {
  ImplicitVariable myVar = (ImplicitVariable)super.restoreElement();
  PsiIdentifier psiIdentifier = myVar.getNameIdentifier();
  if (psiIdentifier == null || !psiIdentifier.isValid()) return null;
  return psiIdentifier.getTextRange();
}
项目:tools-idea    文件:ImplicitVariableElementInfoFactory.java   
@Override
@Nullable
public SmartPointerElementInfo createElementInfo(@NotNull final PsiElement element) {
  if (element instanceof ImplicitVariable && element.isValid()) {
    return new ImplicitVariableInfo((ImplicitVariable) element, element.getProject());
  }
  return null;
}
项目:tools-idea    文件:ImplicitVariableElementInfoFactory.java   
@Override
public PsiElement restoreElement() {
  ImplicitVariable myVar = (ImplicitVariable)super.restoreElement();
  PsiIdentifier psiIdentifier = myVar.getNameIdentifier();
  if (psiIdentifier == null || psiIdentifier.isValid()) return myVar;
  return null;
}
项目:tools-idea    文件:ImplicitVariableElementInfoFactory.java   
@Override
public Segment getRange() {
  ImplicitVariable myVar = (ImplicitVariable)super.restoreElement();
  PsiIdentifier psiIdentifier = myVar.getNameIdentifier();
  if (psiIdentifier == null || !psiIdentifier.isValid()) return null;
  return psiIdentifier.getTextRange();
}
项目:Android_Lint_SRP_Practice_Example    文件:PsiClassStructureDetector.java   
@Override
public void visitImplicitVariable(ImplicitVariable variable) {
    mVisitor.report("ImplicitVariable", variable.getText(), variable);
    super.visitLocalVariable(variable);
}
项目:intellij-ce-playground    文件:ImplicitVariableElementInfoFactory.java   
private ImplicitVariableInfo(@NotNull ImplicitVariable var, @NotNull Project project) {
  super(project, var);
}
项目:tools-idea    文件:ImplicitVariableElementInfoFactory.java   
public ImplicitVariableInfo(@NotNull ImplicitVariable var, @NotNull Project project) {
  super(project, var);
}