예제 #1
0
 public boolean canWrap(Node n, EnhGraph eg) {
   return n.isLiteral();
 }
예제 #2
0
 public EnhNode wrap(Node n, EnhGraph eg) {
   if (!n.isLiteral()) throw new LiteralRequiredException(n);
   return new LiteralImpl(n, eg);
 }
예제 #3
0
 /**
  * @deprecated Please use the createLiteral methods on Model. Model implementors should use
  *     Literal instructors which include the Model.
  */
 public LiteralImpl(String s, String l, boolean wellFormed, ModelCom m) {
   this(Node.createLiteral(s, l, wellFormed), m);
 }