|
From: <jom...@us...> - 2016-04-18 14:56:17
|
Revision: 1906
http://sourceforge.net/p/jason/svn/1906
Author: jomifred
Date: 2016-04-18 14:56:15 +0000 (Mon, 18 Apr 2016)
Log Message:
-----------
add new createLiteral with namesapce
Modified Paths:
--------------
trunk/src/jason/asSyntax/ASSyntax.java
Modified: trunk/src/jason/asSyntax/ASSyntax.java
===================================================================
--- trunk/src/jason/asSyntax/ASSyntax.java 2016-04-18 14:41:25 UTC (rev 1905)
+++ trunk/src/jason/asSyntax/ASSyntax.java 2016-04-18 14:56:15 UTC (rev 1906)
@@ -109,6 +109,9 @@
public static Literal createLiteral(String functor, Term... terms) {
return new LiteralImpl(functor).addTerms(terms);
}
+ public static Literal createLiteral(Atom namespace, String functor, Term... terms) {
+ return new LiteralImpl(namespace, Literal.LPos, functor).addTerms(terms);
+ }
/**
* Creates a new literal, the first argument is either Literal.LPos or Literal.LNeg,
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|