returns the given path as a derived root , relative to the given exec root . the root must be a proper sub-directory of the exec root i.e. not equal . neither may be null . be careful with this method - all derived roots must be registered with the artifact factory before the analysis phase . concode_field_sep Path path concode_elem_sep PathFragment execPath concode_elem_sep Path execRoot concode_elem_sep boolean isMiddlemanRoot concode_field_sep Root asSourceRoot concode_elem_sep Root middlemanRoot concode_elem_sep PathFragment getExecPath concode_elem_sep int hashCode concode_elem_sep boolean equals concode_elem_sep Path getPath concode_elem_sep Root execRootAsDerivedRoot concode_elem_sep String toString concode_elem_sep String getExecPathString concode_elem_sep int compareTo concode_elem_sep boolean isSourceRoot concode_elem_sep boolean isMiddlemanRoot
Root function ( Path arg0 , Path arg1 ) { Preconditions . checkArgument ( arg1 . startsWith ( arg0 ) ) ; Preconditions . checkArgument ( ! arg1 . equals ( arg0 ) ) ; return new Root ( arg0 , arg1 ) ; }