Class NameMatchDecoratorBase

  • All Implemented Interfaces:
    ClassDecorator
    Direct Known Subclasses:
    ExtensionDecorator

    public abstract class NameMatchDecoratorBase
    extends java.lang.Object
    implements ClassDecorator
    Base class for decorators which match on the generated class name.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String m_matchName
      Name pattern to be matched (null if none).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean matchName​(java.lang.String name)
      Match class name against pattern.
      void setMatchName​(java.lang.String match)
      Set name pattern to be matched.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_matchName

        private java.lang.String m_matchName
        Name pattern to be matched (null if none).
    • Constructor Detail

      • NameMatchDecoratorBase

        public NameMatchDecoratorBase()
    • Method Detail

      • setMatchName

        public void setMatchName​(java.lang.String match)
        Set name pattern to be matched.
        Parameters:
        match - pattern to be matched (null if none, meaning match every name)
      • matchName

        protected boolean matchName​(java.lang.String name)
        Match class name against pattern.
        Parameters:
        name -
        Returns:
        true if name matches pattern, false if not