Interface ClassDictionary

  • All Known Implementing Classes:
    ClassDictionaryDefault

    public interface ClassDictionary
    The ClassDictionary is used to look up class-related information about the classes modeling elements of the specification, such as their string names.
    • Method Detail

      • getType

        String getType​(Class<?> clazz)
        Returns the (canonical) name of a Class.
        Parameters:
        clazz - the Class object
        Returns:
        the canonical name of the clazz
      • hasClassName

        boolean hasClassName​(String name)
        Returns true iff the given name is in the class map.
        Parameters:
        name - the given name
        Returns:
        true iff the given name is in the class map
      • getClass

        Class<?> getClass​(String name)
        Returns the class associated with the given name
        Parameters:
        name - the given name
        Returns:
        the class associated with the given name
      • isPrimitive

        boolean isPrimitive​(Class<?> clazz)
        Returns true iff Class is part of the primitives.
        Parameters:
        clazz - the Class object
        Returns:
        true iff clazz is a primitive