Class RegionFieldReplacer

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected RegionFieldReplacer()  
        RegionFieldReplacer​(java.lang.String field, int mode)
      Creates a new RegionFieldReplacer object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDescription()
      Returns a description for the user of what this replacer does.
      java.lang.Object getRegionReplacement​(Region r)
      Returns the value of the property for the region.
      protected void setMethod​(java.lang.reflect.Method method)  
      protected void setMode​(int mode)  
      • Methods inherited from class java.lang.Object

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

      • MODE_ALL

        public static final int MODE_ALL
        Identifier for "any value mode"
        See Also:
        Constant Field Values
      • MODE_NON_NEGATIVE

        public static final int MODE_NON_NEGATIVE
        Identifier for "non-negative mode"
        See Also:
        Constant Field Values
      • MODE_POSITIVE

        public static final int MODE_POSITIVE
        Identifier for "positive mode"
        See Also:
        Constant Field Values
      • field

        protected java.lang.reflect.Field field
      • mode

        protected int mode
      • method

        protected java.lang.reflect.Method method
    • Constructor Detail

      • RegionFieldReplacer

        public RegionFieldReplacer​(java.lang.String field,
                                   int mode)
        Creates a new RegionFieldReplacer object.
        Parameters:
        field - A field name of Region
        mode - Defines what is returned for negative values.
        Throws:
        java.lang.RuntimeException - if the given field is not accessible
      • RegionFieldReplacer

        protected RegionFieldReplacer()