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