Example #1
0
 public EnhNode wrap(Node n, EnhGraph eg) {
   if (!n.isLiteral()) throw new LiteralRequiredException(n);
   return new LiteralImpl(n, eg);
 }
Example #2
0
 public boolean canWrap(Node n, EnhGraph eg) {
   return n.isLiteral();
 }