sun.reflect.generics.tree.TypeSignature Java Examples
The following examples show how to use
sun.reflect.generics.tree.TypeSignature.
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: ConstructorRepository.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #2
Source File: ConstructorRepository.java From hottub with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #3
Source File: ConstructorRepository.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #4
Source File: ConstructorRepository.java From javaide with GNU General Public License v3.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #5
Source File: ConstructorRepository.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #6
Source File: ConstructorRepository.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #7
Source File: ConstructorRepository.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #8
Source File: ConstructorRepository.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #9
Source File: ConstructorRepository.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #10
Source File: ConstructorRepository.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #11
Source File: ConstructorRepository.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #12
Source File: ConstructorRepository.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #13
Source File: ConstructorRepository.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #14
Source File: ConstructorRepository.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getParameterTypes(){ if (paramTypes == null) { // lazily initialize parameter types // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) Type[] ps = new Type[pts.length]; // reify all subtrees for (int i = 0; i < pts.length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it ps[i] = r.getResult(); } paramTypes = ps; // cache overall result } return paramTypes.clone(); // return cached result }
Example #15
Source File: AnnotationParser.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #16
Source File: ConstructorRepository.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private Type[] computeParameterTypes() { // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) int length = pts.length; Type[] parameterTypes = new Type[length]; // reify all subtrees for (int i = 0; i < length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it parameterTypes[i] = r.getResult(); } return parameterTypes; }
Example #17
Source File: AnnotationParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #18
Source File: AnnotationParser.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #19
Source File: AnnotationParser.java From hottub with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #20
Source File: AnnotationParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #21
Source File: AnnotationParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #22
Source File: AnnotationParser.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #23
Source File: AnnotationParser.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #24
Source File: AnnotationParser.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #25
Source File: ConstructorRepository.java From Bytecoder with Apache License 2.0 | 5 votes |
private Type[] computeParameterTypes() { // first, extract parameter type subtree(s) from AST TypeSignature[] pts = getTree().getParameterTypes(); // create array to store reified subtree(s) int length = pts.length; Type[] parameterTypes = new Type[length]; // reify all subtrees for (int i = 0; i < length; i++) { Reifier r = getReifier(); // obtain visitor pts[i].accept(r); // reify subtree // extract result from visitor and store it parameterTypes[i] = r.getResult(); } return parameterTypes; }
Example #26
Source File: AnnotationParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #27
Source File: AnnotationParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #28
Source File: AnnotationParser.java From java-n-IDE-for-Android with Apache License 2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #29
Source File: AnnotationParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }
Example #30
Source File: AnnotationParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static Class<?> parseSig(String sig, Class<?> container) { if (sig.equals("V")) return void.class; SignatureParser parser = SignatureParser.make(); TypeSignature typeSig = parser.parseTypeSig(sig); GenericsFactory factory = CoreReflectionFactory.make(container, ClassScope.make(container)); Reifier reify = Reifier.make(factory); typeSig.accept(reify); Type result = reify.getResult(); return toClass(result); }