Package com.codereligion.hammock.compiler.model

Examples of com.codereligion.hammock.compiler.model.Type


        } else {
            final Name returnType = new Name(method.getReturnType().toString());
            closure = new Closure(name, delegate, parameterType, returnType, isStatic, annotation.nullsafe());
        }

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here


            }
        }

        final Closure closure = builder.build();

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here

            }
        }

        final Closure closure = builder.build();

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here

    private List<Type> compact(LoadingCache<TypeElement, Type> cache) {
        // had some weird race condition when using the live view on the values
        final ArrayList<Type> copy = new ArrayList<>(cache.asMap().values());
       
        for (Type type : copy) {
            Type current = type;

            while (true) {
                final Element element = current.getElement().getEnclosingElement();

                if (element instanceof PackageElement) {
                    break;
                }

                final Type parent;

                try {
                    parent = cache.get((TypeElement) element);
                } catch (ExecutionException e) {
                    throw new AssertionError(e);
                }

                parent.getTypes().add(current);
                current = parent;
            }
        }

        final List<Type> types = new ArrayList<>(cache.asMap().values());
View Full Code Here

            }
        }

        final Closure closure = builder.build();

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here

            }
        }

        final Closure closure = builder.build();

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here

        } else {
            final Name returnType = new Name(method.getReturnType().toString());
            closure = new Closure(name, delegate, parameterType, returnType, isStatic, annotation.nullsafe());
        }

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here

            }
        }

        final Closure closure = builder.build();

        final Type type = storage.apply(typeElement);
        Preconditions.checkNotNull(type, "No type found for %s", typeElement);
        type.getClosures().add(closure);
    }
View Full Code Here

TOP

Related Classes of com.codereligion.hammock.compiler.model.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.