Search in sources :

Example 1 with HasModelElement

use of org.infinispan.protostream.annotations.impl.processor.types.HasModelElement in project protostream by infinispan.

the class MarshallerSourceCodeGenerator method emitSource.

private void emitSource(String fqn, String source, ProtoTypeMetadata ptm) throws IOException {
    Element originatingElement = ((HasModelElement) ptm.getJavaClass()).getElement();
    generatedFilesWriter.addMarshallerSourceFile(fqn, source, originatingElement);
    generatedClasses.add(fqn);
}
Also used : HasModelElement(org.infinispan.protostream.annotations.impl.processor.types.HasModelElement) HasModelElement(org.infinispan.protostream.annotations.impl.processor.types.HasModelElement) Element(javax.lang.model.element.Element)

Aggregations

Element (javax.lang.model.element.Element)1 HasModelElement (org.infinispan.protostream.annotations.impl.processor.types.HasModelElement)1