Class ClassGuard

  • All Implemented Interfaces:
    Guard

    public class ClassGuard
    extends java.lang.Object
    implements Guard
    Ensure that the class of the current scope is that same as when this wrapper was generated. User: spullara Date: 4/13/12 Time: 9:23 AM To change this template use File | Settings | File Templates.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Class classGuard  
      protected int scopeIndex  
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassGuard​(int scopeIndex, java.lang.Object scope)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean apply​(java.util.List<java.lang.Object> scopes)  
      boolean equals​(java.lang.Object o)  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • classGuard

        protected final java.lang.Class classGuard
      • scopeIndex

        protected final int scopeIndex
    • Constructor Detail

      • ClassGuard

        public ClassGuard​(int scopeIndex,
                          java.lang.Object scope)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • apply

        public boolean apply​(java.util.List<java.lang.Object> scopes)
        Specified by:
        apply in interface Guard
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object