com.apple.internal.jobjc.generator.model.types.TypeCache Java Examples
The following examples show how to use
com.apple.internal.jobjc.generator.model.types.TypeCache.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: StructOffsetResolver.java From hottub with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #2
Source File: MethodDisambiguator.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #3
Source File: StructOffsetResolver.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #4
Source File: MethodDisambiguator.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #5
Source File: StructOffsetResolver.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #6
Source File: MethodDisambiguator.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #7
Source File: StructOffsetResolver.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #8
Source File: MethodDisambiguator.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #9
Source File: StructOffsetResolver.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #10
Source File: MethodDisambiguator.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #11
Source File: StructOffsetResolver.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #12
Source File: MethodDisambiguator.java From hottub with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #13
Source File: StructOffsetResolver.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #14
Source File: MethodDisambiguator.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #15
Source File: StructOffsetResolver.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #16
Source File: MethodDisambiguator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #17
Source File: StructOffsetResolver.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #18
Source File: MethodDisambiguator.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #19
Source File: StructOffsetResolver.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #20
Source File: MethodDisambiguator.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #21
Source File: StructOffsetResolver.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #22
Source File: MethodDisambiguator.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }
Example #23
Source File: StructOffsetResolver.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
protected void processLine(String ln, Collection<Framework> fws, Width arch) throws Exception{ System.out.println("\tSOR '" + ln + "'"); if(ln.trim().length() == 0) return; Pattern stinfo = Pattern.compile("^(.*) (.*):(\\d+).*$"); Matcher m = stinfo.matcher(ln); if(!m.matches()) throw new RuntimeException("Failed to parse line from exec: " + ln); String fwname = m.group(1); String stname = m.group(2); int stsize = Integer.parseInt(m.group(3)); Framework fw = findFrameworkByName(fws, fwname); Struct st = fw.getStructByName(stname); NStruct nst = wget(arch, st.type.type32, st.type.type64); nst.sizeof.put(arch, stsize); // System.out.println(st.name + " : " + stsize); Pattern finfo = Pattern.compile(" (-?\\d+)"); Matcher fm = finfo.matcher(ln); int fi = 0; while(fm.find()){ NField sf = nst.fields.get(fi++); sf.offset.put(arch, Integer.parseInt(fm.group(1))); // System.out.println("\t" + sf.name + " : " + off); } TypeCache.inst().pingType(st.type); }
Example #24
Source File: MethodDisambiguator.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
static void disambiguateMethodNames() { // link all subclassers off their parents for (final Clazz clazz : TypeCache.inst().getAllClasses()) { final Clazz superClazz = clazz.superClass; if (superClazz != null) superClazz.subClassers.add(clazz); } // recursively call all subclassers, starting from NSObject on down disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSObject")); // NSProxy does not appear to subclass from NSObject, but it is still a real full class...? disambiguateMethodNamesFor(TypeCache.inst().getClassForName("NSProxy")); }