@Test public void testSimpleClass() { Path p = Utilities.getSourceFileRelativePath(LocalClass.class); assertEquals(p.toString(), perOS("org/raml/jaxrs/parser/source/LocalClass.java")); }
public static Path getSourceFileRelativePath(Type type) { Class declaringClass = Cast.toClass(type); Path packageRelativePath = transformIntoPath(declaringClass); String declaringFileName = getSourceFileName(declaringClass); return packageRelativePath.resolve(declaringFileName); }
Utilities { public static Path getSourceFileRelativePath(Type type) { Class declaringClass = Cast.toClass(type); Path packageRelativePath = transformIntoPath(declaringClass); String declaringFileName = getSourceFileName(declaringClass); return packageRelativePath.resolve(declaringFileName); } }
Utilities { public static Path getSourceFileRelativePath(Type type) { Class declaringClass = Cast.toClass(type); Path packageRelativePath = transformIntoPath(declaringClass); String declaringFileName = getSourceFileName(declaringClass); return packageRelativePath.resolve(declaringFileName); }  }
Utilities { public static Path getSourceFileRelativePath(Type type) { Class declaringClass = Cast.toClass(type); Path packageRelativePath = transformIntoPath(declaringClass); String declaringFileName = getSourceFileName(declaringClass); return packageRelativePath.resolve(declaringFileName); }  static Path getSourceFileRelativePath(Type type); }
Utilities { public static Path getSourceFileRelativePath(Type type) { Class declaringClass = Cast.toClass(type); Path packageRelativePath = transformIntoPath(declaringClass); String declaringFileName = getSourceFileName(declaringClass); return packageRelativePath.resolve(declaringFileName); }  static Path getSourceFileRelativePath(Type type);  }