Class JTypes

java.lang.Object
org.jboss.jdeparser.JTypes

public final class JTypes extends Object
The factory for generating simple types.
  • Method Details

    • $t

      public static JType $t(JClassDef classDef)
      Return the erased type of a class definition.
      Parameters:
      classDef - the class definition
      Returns:
      the type
    • $t

      public static JType $t(Class<?> clazz)
      Return the type corresponding to the given class.
      Parameters:
      clazz - the class
      Returns:
      the type
    • $t

      public static JType $t(String name)
      Return a type corresponding to a class with the given name.
      Parameters:
      name - the class name
      Returns:
      the type
    • typeOf

      public static JType typeOf(JClassDef classDef)
      Return the erased type of a class definition.
      Parameters:
      classDef - the class definition
      Returns:
      the type
    • typeOf

      public static JType typeOf(Class<?> clazz)
      Return the type corresponding to the given class.
      Parameters:
      clazz - the class
      Returns:
      the type
    • typeNamed

      public static JType typeNamed(String name)
      Return a type corresponding to a class with the given name.
      Parameters:
      name - the class name
      Returns:
      the type
    • typeOf

      public static JType typeOf(TypeMirror typeMirror)
      Get a JType that corresponds to the given TypeMirror for annotation processors.
      Parameters:
      typeMirror - the type mirror
      Returns:
      the JType