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

项目:intellij-ce-playground    文件:AnonymousInnerClassInspectionBase.java   
@Override
public void visitAnonymousClass(@NotNull PsiAnonymousClass aClass) {
  super.visitAnonymousClass(aClass);
  if (aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  registerClassError(aClass);
}
项目:intellij-ce-playground    文件:AnonymousClassMethodCountInspectionBase.java   
@Override
public void visitAnonymousClass(
  @NotNull PsiAnonymousClass aClass) {
  if (aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  final int totalMethodCount = calculateTotalMethodCount(aClass);
  if (totalMethodCount <= getLimit()) {
    return;
  }
  registerClassError(aClass, Integer.valueOf(totalMethodCount));
}
项目:tools-idea    文件:SerializableHasSerializationMethodsInspection.java   
@Override
public void visitClass(@NotNull PsiClass aClass) {
  // no call to super, so it doesn't drill down
  if (aClass.isInterface() || aClass.isAnnotationType() ||
      aClass.isEnum()) {
    return;
  }
  if (aClass instanceof PsiTypeParameter ||
      aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  if (ignoreAnonymousInnerClasses &&
      aClass instanceof PsiAnonymousClass) {
    return;
  }
  if (!SerializationUtils.isSerializable(aClass)) {
    return;
  }
  final boolean hasReadObject =
    SerializationUtils.hasReadObject(aClass);
  final boolean hasWriteObject =
    SerializationUtils.hasWriteObject(aClass);
  if (hasWriteObject && hasReadObject) {
    return;
  }
  if (isIgnoredSubclass(aClass)) {
    return;
  }
  registerClassError(aClass, Boolean.valueOf(hasReadObject),
                     Boolean.valueOf(hasWriteObject));
}
项目:tools-idea    文件:AnonymousInnerClassInspection.java   
@Override
public void visitAnonymousClass(@NotNull PsiAnonymousClass aClass) {
  super.visitAnonymousClass(aClass);
  if (aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  registerClassError(aClass);
}
项目:tools-idea    文件:AnonymousClassMethodCountInspectionBase.java   
@Override
public void visitAnonymousClass(
  @NotNull PsiAnonymousClass aClass) {
  if (aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  final int totalMethodCount = calculateTotalMethodCount(aClass);
  if (totalMethodCount <= getLimit()) {
    return;
  }
  registerClassError(aClass, Integer.valueOf(totalMethodCount));
}
项目:consulo-java    文件:SerializableHasSerializationMethodsInspection.java   
@Override
public void visitClass(@NotNull PsiClass aClass) {
  // no call to super, so it doesn't drill down
  if (aClass.isInterface() || aClass.isAnnotationType() ||
      aClass.isEnum()) {
    return;
  }
  if (aClass instanceof PsiTypeParameter ||
      aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  if (ignoreAnonymousInnerClasses &&
      aClass instanceof PsiAnonymousClass) {
    return;
  }
  if (!SerializationUtils.isSerializable(aClass)) {
    return;
  }
  final boolean hasReadObject =
    SerializationUtils.hasReadObject(aClass);
  final boolean hasWriteObject =
    SerializationUtils.hasWriteObject(aClass);
  if (hasWriteObject && hasReadObject) {
    return;
  }
  if (isIgnoredSubclass(aClass)) {
    return;
  }
  registerClassError(aClass, Boolean.valueOf(hasReadObject),
                     Boolean.valueOf(hasWriteObject));
}
项目:consulo-java    文件:AnonymousInnerClassInspection.java   
@Override
public void visitAnonymousClass(@NotNull PsiAnonymousClass aClass) {
  super.visitAnonymousClass(aClass);
  if (aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  registerClassError(aClass);
}
项目:consulo-java    文件:AnonymousClassMethodCountInspection.java   
@Override
public void visitAnonymousClass(
  @NotNull PsiAnonymousClass aClass) {
  if (aClass instanceof PsiEnumConstantInitializer) {
    return;
  }
  final int totalMethodCount = calculateTotalMethodCount(aClass);
  if (totalMethodCount <= getLimit()) {
    return;
  }
  registerClassError(aClass, Integer.valueOf(totalMethodCount));
}
项目:Android_Lint_SRP_Practice_Example    文件:PsiClassStructureDetector.java   
@Override
public void visitEnumConstantInitializer(PsiEnumConstantInitializer enumConstantInitializer) {
    mVisitor.report("PsiEnumConstantInitializer", enumConstantInitializer.getText(), enumConstantInitializer);
    super.visitAnonymousClass(enumConstantInitializer);
}