|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public boolean isVisible(ResolvedType fromType) { |
|
|
public boolean isVisible(ResolvedType fromType) { |
|
|
World world = fromType.getWorld(); |
|
|
|
|
|
return ResolvedType.isVisible(getModifiers(), getDeclaringType().resolve(world), fromType); |
|
|
|
|
|
|
|
|
UnresolvedType declaringType = getDeclaringType(); |
|
|
|
|
|
ResolvedType type = null; |
|
|
|
|
|
if (fromType.equals(declaringType)) { |
|
|
|
|
|
type = fromType; |
|
|
|
|
|
} else { |
|
|
|
|
|
World world = fromType.getWorld(); |
|
|
|
|
|
type = declaringType.resolve(world); |
|
|
|
|
|
} |
|
|
|
|
|
return ResolvedType.isVisible(getModifiers(), type, fromType); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void setCheckedExceptions(UnresolvedType[] checkedExceptions) { |
|
|
public void setCheckedExceptions(UnresolvedType[] checkedExceptions) { |