Interface IDefinitionTypeInfo

    • Method Detail

      • getDefinition

        @NonNull
        IDefinition getDefinition()
        Get the definition associated with this type info.
        Returns:
        the definition
      • getTypeResolver

        @NonNull
        ITypeResolver getTypeResolver()
        Gets the resolver which can be used to lookup Java type information for Module objects.
        Returns:
        the type resolver
      • hasPropertyWithName

        boolean hasPropertyWithName​(@NonNull
                                    String propertyName)
        Check's if the Java class to be generated will have a property with the given name.
        Parameters:
        propertyName - the property name to look for
        Returns:
        true if there is an associated property with the name or false otherwise
      • getInstanceTypeInfo

        @Nullable
        IInstanceTypeInfo getInstanceTypeInfo​(@NonNull
                                              INamedInstance instance)
        Get the type information for the provided instance value.
        Parameters:
        instance - the instance to get type information for
        Returns:
        the type information
      • getPropertyTypeInfos

        @NonNull
        Collection<ITypeInfogetPropertyTypeInfos()
        Get the type information for all Java class properties associated with a given instance.
        Returns:
        the type information