Class Context

java.lang.Object
online.sharedtype.processor.context.Context

public final class Context extends Object
Annotation processing context state and utils.
Author:
Cause Chung
  • Constructor Details

  • Method Details

    • info

      public void info(Element element, String message, Object... objects)
    • warn

      public void warn(Element element, String message, Object... objects)
    • error

      public void error(Element element, String message, Object... objects)
    • info

      public void info(String message, Object... objects)
    • warn

      public void warn(String message, Object... objects)
    • isArraylike

      public boolean isArraylike(TypeMirror typeMirror)
    • isTopArrayType

      public boolean isTopArrayType(TypeMirror typeMirror)
      Check if the type is directly the same type as one of the defined arraylike types
    • isMaplike

      public boolean isMaplike(TypeMirror typeMirror)
    • isDatetimelike

      public boolean isDatetimelike(TypeMirror typeMirror)
    • isEnumType

      public boolean isEnumType(TypeMirror typeMirror)
    • isIgnored

      public boolean isIgnored(Element element)
    • isOptionalAnnotated

      public boolean isOptionalAnnotated(Element element)
    • isOptionalType

      public boolean isOptionalType(String qualifiedName)
    • isExplicitAccessor

      public boolean isExplicitAccessor(ExecutableElement element)
    • isAnnotatedAsEnumValue

      public boolean isAnnotatedAsEnumValue(Element element)
    • extractTagLiterals

      public Map<SharedType.TargetType,List<TagLiteralContainer>> extractTagLiterals(Element element)
    • getTypeQualifiedName

      public String getTypeQualifiedName(DeclaredType typeMirror)
    • createSourceOutput

      public FileObject createSourceOutput(String filename) throws IOException
      Throws:
      IOException