Class PrologAdapterFactory

    • Field Detail

      • modelPackage

        protected static PrologPackage modelPackage
        The cached model package.
        Generated class or method.
      • modelSwitch

        protected PrologSwitch<Adapter> modelSwitch
        The switch that delegates to the createXXX methods.
        Generated class or method.
    • Constructor Detail

      • PrologAdapterFactory

        public PrologAdapterFactory()
        Creates an instance of the adapter factory.
        Generated class or method.
    • Method Detail

      • isFactoryForType

        public boolean isFactoryForType​(Object object)
        Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.
        Specified by:
        isFactoryForType in interface AdapterFactory
        Overrides:
        isFactoryForType in class AdapterFactoryImpl
        Returns:
        whether this factory is applicable for the type of the object.
        Generated class or method.
      • createAdapter

        public Adapter createAdapter​(Notifier target)
        Creates an adapter for the target.
        Overrides:
        createAdapter in class AdapterFactoryImpl
        Parameters:
        target - the object to adapt.
        Returns:
        the adapter for the target.
        Generated class or method.
      • createProgramAdapter

        public Adapter createProgramAdapter()
        Creates a new adapter for an object of class 'Program'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Program
        Generated class or method.
      • createClauseAdapter

        public Adapter createClauseAdapter()
        Creates a new adapter for an object of class 'Clause'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Clause
        Generated class or method.
      • createCommentAdapter

        public Adapter createCommentAdapter()
        Creates a new adapter for an object of class 'Comment'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Comment
        Generated class or method.
      • createTermAdapter

        public Adapter createTermAdapter()
        Creates a new adapter for an object of class 'Term'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Term
        Generated class or method.
      • createCompoundTermAdapter

        public Adapter createCompoundTermAdapter()
        Creates a new adapter for an object of class 'Compound Term'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        CompoundTerm
        Generated class or method.
      • createAtomicNumberAdapter

        public Adapter createAtomicNumberAdapter()
        Creates a new adapter for an object of class 'Atomic Number'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AtomicNumber
        Generated class or method.
      • createAtomicDoubleAdapter

        public Adapter createAtomicDoubleAdapter()
        Creates a new adapter for an object of class 'Atomic Double'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AtomicDouble
        Generated class or method.
      • createAtomicQuotedStringAdapter

        public Adapter createAtomicQuotedStringAdapter()
        Creates a new adapter for an object of class 'Atomic Quoted String'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        AtomicQuotedString
        Generated class or method.
      • createListAdapter

        public Adapter createListAdapter()
        Creates a new adapter for an object of class 'List'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        List
        Generated class or method.
      • createFactAdapter

        public Adapter createFactAdapter()
        Creates a new adapter for an object of class 'Fact'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Fact
        Generated class or method.
      • createRuleAdapter

        public Adapter createRuleAdapter()
        Creates a new adapter for an object of class 'Rule'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Rule
        Generated class or method.
      • createControlPredicateAdapter

        public Adapter createControlPredicateAdapter()
        Creates a new adapter for an object of class 'Control Predicate'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ControlPredicate
        Generated class or method.
      • createTrueAdapter

        public Adapter createTrueAdapter()
        Creates a new adapter for an object of class 'True'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        True
        Generated class or method.
      • createFalseAdapter

        public Adapter createFalseAdapter()
        Creates a new adapter for an object of class 'False'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        False
        Generated class or method.
      • createFailAdapter

        public Adapter createFailAdapter()
        Creates a new adapter for an object of class 'Fail'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Fail
        Generated class or method.
      • createCutAdapter

        public Adapter createCutAdapter()
        Creates a new adapter for an object of class 'Cut'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Cut
        Generated class or method.
      • createExpressionAdapter

        public Adapter createExpressionAdapter()
        Creates a new adapter for an object of class 'Expression'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Expression
        Generated class or method.
      • createEObjectAdapter

        public Adapter createEObjectAdapter()
        Creates a new adapter for the default case. This default implementation returns null.
        Returns:
        the new adapter.
        Generated class or method.