sun.reflect.generics.tree.TypeTree Java Examples
The following examples show how to use
sun.reflect.generics.tree.TypeTree.
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: ClassRepository.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #2
Source File: ClassRepository.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #3
Source File: ClassRepository.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #4
Source File: ClassRepository.java From java-n-IDE-for-Android with Apache License 2.0 | 6 votes |
public Type[] getSuperInterfaces(){ if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) Type[] sis = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it sis[i] = r.getResult(); } superInterfaces = sis; // cache overall result } return superInterfaces.clone(); // return cached result }
Example #5
Source File: ClassRepository.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #6
Source File: ClassRepository.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #7
Source File: ClassRepository.java From javaide with GNU General Public License v3.0 | 6 votes |
public Type[] getSuperInterfaces(){ if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) Type[] sis = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it sis[i] = r.getResult(); } superInterfaces = sis; // cache overall result } return superInterfaces.clone(); // return cached result }
Example #8
Source File: ClassRepository.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #9
Source File: ClassRepository.java From hottub with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #10
Source File: ClassRepository.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces(){ if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) Type[] sis = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it sis[i] = r.getResult(); } superInterfaces = sis; // cache overall result } return superInterfaces.clone(); // return cached result }
Example #11
Source File: ClassRepository.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces(){ if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) Type[] sis = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it sis[i] = r.getResult(); } superInterfaces = sis; // cache overall result } return superInterfaces.clone(); // return cached result }
Example #12
Source File: ClassRepository.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #13
Source File: ClassRepository.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #14
Source File: ClassRepository.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public Type[] getSuperInterfaces() { Type[] superInterfaces = this.superInterfaces; if (superInterfaces == null) { // lazily initialize super interfaces // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) superInterfaces = new Type[ts.length]; // reify all subtrees for (int i = 0; i < ts.length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } this.superInterfaces = superInterfaces; } return superInterfaces.clone(); // return cached result }
Example #15
Source File: ClassRepository.java From Bytecoder with Apache License 2.0 | 5 votes |
private Type[] computeSuperInterfaces() { // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) int length = ts.length; Type[] superInterfaces = new Type[length]; // reify all subtrees for (int i = 0; i < length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } return superInterfaces; }
Example #16
Source File: ClassRepository.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private Type[] computeSuperInterfaces() { // first, extract super interface subtree(s) from AST TypeTree[] ts = getTree().getSuperInterfaces(); // create array to store reified subtree(s) int length = ts.length; Type[] superInterfaces = new Type[length]; // reify all subtrees for (int i = 0; i < length; i++) { Reifier r = getReifier(); // obtain visitor ts[i].accept(r);// reify subtree // extract result from visitor and store it superInterfaces[i] = r.getResult(); } return superInterfaces; }