com.google.clearsilver.jsilver.precompiler
Class PrecompiledTemplateMapKey

java.lang.Object
  extended by com.google.clearsilver.jsilver.precompiler.PrecompiledTemplateMapKey

public class PrecompiledTemplateMapKey
extends Object

Object to use as key when looking up precompiled templates. It encapsulates the template name, as well as the EscapeMode for which the template was compiled.


Constructor Summary
PrecompiledTemplateMapKey(Object templateName, EscapeMode escapeMode)
           
 
Method Summary
 boolean equals(Object o)
           
 EscapeMode getEscapeMode()
          Return the escape mode used for this template.
 int hashCode()
           
 String toString()
          String representation of key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrecompiledTemplateMapKey

public PrecompiledTemplateMapKey(Object templateName,
                                 EscapeMode escapeMode)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
String representation of key. If the template was auto escaped, it appends the EscapeMode to the template name.

Overrides:
toString in class Object

getEscapeMode

public EscapeMode getEscapeMode()
Return the escape mode used for this template.



Copyright © 2010-2012 Google. All Rights Reserved.