JavaId extends ConstructId { public static JavaMethodId parseMethodQName(String _s) { return JavaId.parseMethodQName(JavaId.Type.CLASS, _s); } protected  JavaId(Type _t); Type getType(); String toString(); Set<String> getAnnotations(); void addAnnotation(String _a); boolean hasAnnotation(String _a); abstract JavaPackageId getJavaPackageId(); abstract ConstructId getDefinitionContext(); ConstructType getSharedType(); final String toJSON(); @Override JsonObject toGSON(); @Override final int hashCode(); @Override final boolean equals(Object obj); static String typeToString(Type _t); static Type typeFromString(String _t); static org.eclipse.steady.shared.enums.ConstructType toSharedType(JavaId.Type _core_type); static org.eclipse.steady.ConstructId toCoreType(
      org.eclipse.steady.shared.json.model.ConstructId _cid); static Set<org.eclipse.steady.ConstructId> toCoreType(
      Collection<org.eclipse.steady.shared.json.model.ConstructId> _cids); static JavaClassId getClassId(@NotNull Class _c); static JavaEnumId parseEnumQName(@NotNull String _s); static JavaClassId parseClassQName(@NotNull String _s); static JavaMethodId parseMethodQName(String _s); static JavaMethodId parseMethodQName(JavaId.Type _ctx_type, String _s); static JavaConstructorId parseConstructorQName(String _s); static JavaConstructorId parseConstructorQName(
      JavaId.Type _ctx_type, String _s, String _param_to_skip); static JavaClassInit parseClassInitQName(String _s); static String removePackageContext(String _qname); static Set<ConstructId> filter(Set<ConstructId> _set, String[] _filter); static Set<ConstructId> filter(Set<ConstructId> _set, String _filter); static Set<ConstructId> filter(Set<ConstructId> _set, JavaId.Type[] _filter); static Set<ConstructId> filterWithContext(Set<ConstructId> _set, JavaId _context); URL getJarUrl(); static final URL getJarUrl(URL _url); JavaId getCompilationUnit(); static JavaId getCompilationUnit(JavaId _jid); static JavaId getJavaId(String _type, String _qname);  }
@Test public void testMethodParser() { final JavaPackageId p = new JavaPackageId("com.sap.research"); final JavaClassId c = new JavaClassId(p, "TestClass"); final JavaClassId nc = new JavaClassId(c, "NestedClass"); final JavaMethodId m1 = new JavaMethodId(nc, "foo", Arrays.asList("java.lang.String", "int")); final JavaMethodId m2 = JavaId.parseMethodQName("com.sap.research.TestClass$NestedClass.foo(String,int)"); assertEquals(m1, m2); }