T - native Term Representationpublic interface PrologConverter<T>
PrologTerm to the equivalent native T
 term representation.| Modifier and Type | Method and Description | 
|---|---|
PrologProvider | 
createProvider()
Create a Prolog provider instance. 
 | 
T | 
fromTerm(PrologTerm term)
Create a native term representation from given Prolog term. 
 | 
<K> K | 
fromTerm(PrologTerm term,
        Class<K> to)
Create a native rule representation term from given head and body and cast
 this native term to some specific given class. 
 | 
T | 
fromTerm(PrologTerm head,
        PrologTerm[] body)
Create a native rule representation term from given head and body. 
 | 
<K> K | 
fromTerm(PrologTerm head,
        PrologTerm[] body,
        Class<K> to)
Create a native rule representation term from given head and body and cast
 this native term to some specific given class. 
 | 
T[] | 
fromTermArray(PrologTerm[] terms)
Create a native term array representation from given Prolog term array. 
 | 
<K> K[] | 
fromTermArray(PrologTerm[] terms,
             Class<K[]> to)
Create a native term array representation from given Prolog term array and
 cast this native term array to some specific given array class. 
 | 
Class<T> | 
getGenericClass()
Get the generic class for the current Prolog converter at runtime. 
 | 
<K extends PrologTerm> | 
toTerm(Object o,
      Class<K> from)
Create an equivalent Prolog term using the given native term representation
 and cast this Prolog term to some specific given class. 
 | 
PrologTerm | 
toTerm(T prologTerm)
Create an equivalent Prolog term using the given native term representation. 
 | 
<K extends PrologTerm> | 
toTermArray(Object[] objects,
           Class<K[]> from)
Create an equivalent Prolog terms array using the given native terms array
 representation and cast this Prolog term array to some specific array
 component class. 
 | 
PrologTerm[] | 
toTermArray(T[] terms)
Create an equivalent Prolog terms array using the given native terms array
 representation. 
 | 
Map<String,PrologTerm> | 
toTermMap(Map<String,T> map)
Create an equivalent Prolog terms map using the given native terms map
 representation. 
 | 
<K extends PrologTerm,V> | 
toTermMap(Map<String,V> map,
         Class<K> from)
Create an equivalent Prolog terms map using the given native terms map
 representation and cast every Prolog term to some specific given class. 
 | 
Map<String,PrologTerm>[] | 
toTermMapArray(Map<String,T>[] map)
Create an equivalent Prolog terms map array using the given native terms map
 array representation. 
 | 
<K extends PrologTerm,V> | 
toTermMapArray(Map<String,V>[] map,
              Class<K> from)
Create an equivalent Prolog terms map array using the given native terms map
 array representation and cast every Prolog term to some specific given class. 
 | 
<K extends PrologTerm> | 
toTermMatrix(Object[][] objects,
            Class<K[][]> from)
Create an equivalent Prolog terms matrix using the given native terms matrix
 representation and cast every Prolog terms matrix to some specific matrix
 component class. 
 | 
PrologTerm[][] | 
toTermMatrix(T[][] terms)
Create an equivalent Prolog terms matrix using the given native terms matrix
 representation. 
 | 
Map<String,PrologTerm>[] toTermMapArray(Map<String,T>[] map)
map - native terms map array to be converted in Prolog terms map array.Map<String,PrologTerm> toTermMap(Map<String,T> map)
map - native terms map representation to be convertedPrologTerm[][] toTermMatrix(T[][] terms)
terms - native terms matrix representation to be convertedPrologTerm[] toTermArray(T[] terms)
terms - native terms array representation to be convertedPrologTerm toTerm(T prologTerm)
prologTerm - native term representation to be convertedT fromTerm(PrologTerm term)
term - Prolog term to be converted to native prolog termT[] fromTermArray(PrologTerm[] terms)
terms - Prolog term array to be converted to native array.T fromTerm(PrologTerm head, PrologTerm[] body)
head - rule headbody - rule bodyClass<T> getGenericClass()
PrologProvider createProvider()
<K extends PrologTerm,V> Map<String,PrologTerm>[] toTermMapArray(Map<String,V>[] map, Class<K> from)
K - generic type that extends from PrologTermV - generic type that extends from Object representing a
             native prolog term.map - native terms map array to be converted in Prolog terms map array.from - class to be cast the result Prolog term<K extends PrologTerm,V> Map<String,PrologTerm> toTermMap(Map<String,V> map, Class<K> from)
K - generic type that extends from PrologTermV - generic type that extends from Object representing a
             native prolog term.map - native terms map representation to be convertedfrom - class to be cast the result Prolog term<K extends PrologTerm> K[][] toTermMatrix(Object[][] objects, Class<K[][]> from)
K - generic type that extends from PrologTermobjects - native terms matrix representation to be convertedfrom - class to be cast the result Prolog term<K extends PrologTerm> K[] toTermArray(Object[] objects, Class<K[]> from)
K - generic type that extends from PrologTermobjects - native terms array representation to be convertedfrom - class to be cast the result Prolog term<K extends PrologTerm> K toTerm(Object o, Class<K> from)
K - generic type that extends from PrologTermo - native term representation to be convertedfrom - class to be cast the result Prolog term<K> K fromTerm(PrologTerm term, Class<K> to)
K - generic type that represent native prolog typeterm - Prolog term to be converted to native term.to - class to be cast the result native term<K> K[] fromTermArray(PrologTerm[] terms, Class<K[]> to)
K - generic type that represent native prolog typeterms - Prolog term array to be converted to native array.to - class to be cast the result native term<K> K fromTerm(PrologTerm head, PrologTerm[] body, Class<K> to)
K - generic type that represent native prolog typehead - rule headbody - rule bodyto - class to be cast the result native termCopyright © 2020–2024 Prolobjectlink Project. All rights reserved.