Some toString impls to make debugging easier.

This commit is contained in:
Michael Bayne
2016-06-15 11:49:37 -07:00
parent 115f496947
commit 1170d4500e
2 changed files with 17 additions and 1 deletions
@@ -107,7 +107,7 @@ public class Template
/** A sentinel object that can be returned by a {@link Mustache.Collector} to indicate that a
* variable does not exist in a particular context. */
public static final Object NO_FETCHER_FOUND = new Object();
public static final Object NO_FETCHER_FOUND = new String("<no fetcher found>");
/**
* Executes this template with the given context, returning the results as a string.
@@ -377,6 +377,10 @@ public class Template
Key okey = (Key)other;
return okey.cclass == cclass && okey.name == name;
}
@Override public String toString () {
return cclass.getName() + ":" + name;
}
}
protected static final String DOT_NAME = ".".intern();