returns whether a package is allowed to be used . the algorithm checks with the current node for a result , and if none is found then calls its parent looking for a match . this will recurse looking for match . if there is no clear result then accessresult #unknown isreturned . concode_field_sep List<PkgControl> children concode_elem_sep PkgControl parent concode_elem_sep Deque<Guard> guards concode_elem_sep String fullPackage concode_field_sep void addGuard concode_elem_sep String getFullPackage concode_elem_sep PkgControl locateFinest concode_elem_sep AccessResult localCheckAccess
AccessResult function ( final String arg0 , final String arg1 ) { final AccessResult loc0 = localCheckAccess ( arg0 , arg1 ) ; if ( loc0 != AccessResult . UNKNOWN ) { return loc0 ; } if ( parent == null ) { return AccessResult . DISALLOWED ; } return parent . checkAccess ( arg0 , arg1 ) ; }