test_class.file: tycho-p2/tycho-p2-director-plugin/src/test/java/org/eclipse/tycho/plugins/tar/FilePermissionHelperTest.java
test_class.identifier: FilePermissionHelperTest
test_case.body: @Test
      public void testOctalFileMode644() {
          Set<PosixFilePermission> perms = createPermissionSet(PosixFilePermission.OWNER_READ,
                  PosixFilePermission.OWNER_WRITE, PosixFilePermission.GROUP_READ, PosixFilePermission.OTHERS_READ);
          Assert.assertEquals(0644, FilePermissionHelper.toOctalFileMode(perms));
      }
test_case.class_method_signature: FilePermissionHelperTest.testOctalFileMode644()
test_case.full_signature: @Test public void testOctalFileMode644()
test_case.identifier: testOctalFileMode644
test_case.invocations: createPermissionSet assertEquals toOctalFileMode
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testOctalFileMode644()
focal_class.declarator: OWNER_READ_FILEMODE = 0400
focal_class.modifier: private static final
focal_class.original_string: private static final int OWNER_READ_FILEMODE = 0400;
focal_class.type: int
focal_class.var_name: OWNER_READ_FILEMODE
focal_class.declarator: OWNER_WRITE_FILEMODE = 0200
focal_class.modifier: private static final
focal_class.original_string: private static final int OWNER_WRITE_FILEMODE = 0200;
focal_class.type: int
focal_class.var_name: OWNER_WRITE_FILEMODE
focal_class.declarator: OWNER_EXEC_FILEMODE = 0100
focal_class.modifier: private static final
focal_class.original_string: private static final int OWNER_EXEC_FILEMODE = 0100;
focal_class.type: int
focal_class.var_name: OWNER_EXEC_FILEMODE
focal_class.declarator: GROUP_READ_FILEMODE = 0040
focal_class.modifier: private static final
focal_class.original_string: private static final int GROUP_READ_FILEMODE = 0040;
focal_class.type: int
focal_class.var_name: GROUP_READ_FILEMODE
focal_class.declarator: GROUP_WRITE_FILEMODE = 0020
focal_class.modifier: private static final
focal_class.original_string: private static final int GROUP_WRITE_FILEMODE = 0020;
focal_class.type: int
focal_class.var_name: GROUP_WRITE_FILEMODE
focal_class.declarator: GROUP_EXEC_FILEMODE = 0010
focal_class.modifier: private static final
focal_class.original_string: private static final int GROUP_EXEC_FILEMODE = 0010;
focal_class.type: int
focal_class.var_name: GROUP_EXEC_FILEMODE
focal_class.declarator: OTHERS_READ_FILEMODE = 0004
focal_class.modifier: private static final
focal_class.original_string: private static final int OTHERS_READ_FILEMODE = 0004;
focal_class.type: int
focal_class.var_name: OTHERS_READ_FILEMODE
focal_class.declarator: OTHERS_WRITE_FILEMODE = 0002
focal_class.modifier: private static final
focal_class.original_string: private static final int OTHERS_WRITE_FILEMODE = 0002;
focal_class.type: int
focal_class.var_name: OTHERS_WRITE_FILEMODE
focal_class.declarator: OTHERS_EXEC_FILEMODE = 0001
focal_class.modifier: private static final
focal_class.original_string: private static final int OTHERS_EXEC_FILEMODE = 0001;
focal_class.type: int
focal_class.var_name: OTHERS_EXEC_FILEMODE
focal_class.file: tycho-p2/tycho-p2-director-plugin/src/main/java/org/eclipse/tycho/plugins/tar/FilePermissionHelper.java
focal_class.identifier: FilePermissionHelper
focal_class.class_method_signature: FilePermissionHelper.FilePermissionHelper()
focal_class.full_signature: private  FilePermissionHelper()
focal_class.identifier: FilePermissionHelper
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  FilePermissionHelper()
focal_class.class_method_signature: FilePermissionHelper.toOctalFileMode(Set<PosixFilePermission> permissions)
focal_class.full_signature: public static int toOctalFileMode(Set<PosixFilePermission> permissions)
focal_class.identifier: toOctalFileMode
focal_class.modifiers: public static
focal_class.parameters: (Set<PosixFilePermission> permissions)
focal_class.return: int
focal_class.signature: int toOctalFileMode(Set<PosixFilePermission> permissions)
focal_method.body: public static int toOctalFileMode(Set<PosixFilePermission> permissions) {
          int result = 0;
          for (PosixFilePermission permissionBit : permissions) {
              switch (permissionBit) {
              case OWNER_READ:
                  result |= OWNER_READ_FILEMODE;
                  break;
              case OWNER_WRITE:
                  result |= OWNER_WRITE_FILEMODE;
                  break;
              case OWNER_EXECUTE:
                  result |= OWNER_EXEC_FILEMODE;
                  break;
              case GROUP_READ:
                  result |= GROUP_READ_FILEMODE;
                  break;
              case GROUP_WRITE:
                  result |= GROUP_WRITE_FILEMODE;
                  break;
              case GROUP_EXECUTE:
                  result |= GROUP_EXEC_FILEMODE;
                  break;
              case OTHERS_READ:
                  result |= OTHERS_READ_FILEMODE;
                  break;
              case OTHERS_WRITE:
                  result |= OTHERS_WRITE_FILEMODE;
                  break;
              case OTHERS_EXECUTE:
                  result |= OTHERS_EXEC_FILEMODE;
                  break;
              }
          }
          return result;
      }
focal_method.class_method_signature: FilePermissionHelper.toOctalFileMode(Set<PosixFilePermission> permissions)
focal_method.full_signature: public static int toOctalFileMode(Set<PosixFilePermission> permissions)
focal_method.identifier: toOctalFileMode
focal_method.modifiers: public static
focal_method.parameters: (Set<PosixFilePermission> permissions)
focal_method.return: int
focal_method.signature: int toOctalFileMode(Set<PosixFilePermission> permissions)