private void declareDynamicType(TypedDeclaration component) { component.setType(component.getType(), true); }
private boolean hasCustomStaticType(TypedDeclaration declaration) { return declaration.getType().getAnnotation(CustomDefinedStaticTypeAnnotation.class).isPresent(); }
private <T extends BaseDeclaration & TypedDeclaration> void declareCustomType(T declaration, MetadataType target) { MetadataType type = declaration.getType(); Class<?> clazz = getType(type).orElseThrow(() -> new IllegalStateException("Could not find class in type [" + type + "]")); Set<TypeAnnotation> a = new HashSet<>(asList(new ClassInformationAnnotation(clazz), new CustomDefinedStaticTypeAnnotation())); declaration.setType(enricher.enrich(target, a), false); }
private void declareDynamicType(TypedDeclaration component) { component.setType(component.getType(), true); }
private boolean hasCustomStaticType(TypedDeclaration declaration) { return declaration.getType().getAnnotation(CustomDefinedStaticTypeAnnotation.class).isPresent(); }
private <T extends BaseDeclaration & TypedDeclaration> void declareCustomType(T declaration, MetadataType target) { MetadataType type = declaration.getType(); Class<?> clazz = getType(type).orElseThrow(() -> new IllegalStateException("Could not find class in type [" + type + "]")); Set<TypeAnnotation> a = new HashSet<>(asList(new ClassInformationAnnotation(clazz), new CustomDefinedStaticTypeAnnotation())); declaration.setType(enricher.enrich(target, a), false); }