Package io.avaje.http.generator.core
Class ProcessingContext
- java.lang.Object
-
- io.avaje.http.generator.core.ProcessingContext
-
public class ProcessingContext extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ElementasElement(TypeMirror typeMirror)TypeMirrorasMemberOf(DeclaredType declaredType, Element element)JavaFileObjectcreateWriter(String cls, Element origin)Create a file writer for the given class name.DocContextdoc()StringgetDocComment(Element param)TypeElementgetTypeElement(String canonicalName)booleanisOpenApiAvailable()voidlogError(Element e, String msg, Object... args)PlatformAdapterplatform()
-
-
-
Method Detail
-
getTypeElement
public TypeElement getTypeElement(String canonicalName)
-
isOpenApiAvailable
public boolean isOpenApiAvailable()
-
createWriter
public JavaFileObject createWriter(String cls, Element origin) throws IOException
Create a file writer for the given class name.- Throws:
IOException
-
getDocComment
public String getDocComment(Element param)
-
doc
public DocContext doc()
-
asElement
public Element asElement(TypeMirror typeMirror)
-
asMemberOf
public TypeMirror asMemberOf(DeclaredType declaredType, Element element)
-
platform
public PlatformAdapter platform()
-
-