@Override protected StringBuilder appendName(final StringBuilder sb, final boolean fullName, final boolean dottedName) { if (fullName && dottedName && isNested() && !isAnonymous() && _simpleName != null) { return getDeclaringType().appendName(sb, true, true).append('.').append(_simpleName); } return super.appendName(sb, fullName, dottedName); }
@Override protected StringBuilder appendName(final StringBuilder sb, final boolean fullName, final boolean dottedName) { if (fullName && dottedName && isNested() && !isAnonymous() && _simpleName != null) { return getDeclaringType().appendName(sb, true, true).append('.').append(_simpleName); } return super.appendName(sb, fullName, dottedName); }
@Override protected StringBuilder appendName(final StringBuilder sb, final boolean fullName, final boolean dottedName) { if (fullName && dottedName && isNested() && !isAnonymous() && _simpleName != null) { return getDeclaringType().appendName(sb, true, true).append('.').append(_simpleName); } return super.appendName(sb, fullName, dottedName); }
private MethodDefinition tryLocateClassMethod(final TypeDefinition currentType, final AstNode compilationUnit) { final ClassMethodLocator locator = new ClassMethodLocator(_context); locator.run(compilationUnit); if (locator.classMethod != null) { return locator.classMethod; } if (currentType.isNested()) { return tryLocateClassMethodOutOfScope(currentType); } return null; }
@Nullable public static TypeDefinition getOutermostEnclosingType(final TypeReference innerType) { TypeReference t = innerType; while (t != null) { final TypeDefinition r = t.resolve(); if (r == null || !r.isNested()) { return r; } final MethodReference m = r.getDeclaringMethod(); t = m != null ? m.getDeclaringType() : t.getDeclaringType(); } return null; }
boolean nested = resolvedType.isNested() || resolvedType.isAnonymous() || resolvedType.isSynthetic(); if (!this.procyonConf.isIncludeNested() && nested) return null;
boolean nested = resolvedType.isNested() || resolvedType.isAnonymous() || resolvedType.isSynthetic(); if (!this.procyonConf.isIncludeNested() && nested) return null;