Class PrimitiveMatcher

  • All Implemented Interfaces:
    Matcher

    class PrimitiveMatcher
    extends java.lang.Object
    implements Matcher
    The PrimitiveMatcher object is used to resolve the primitive types to a stock transform. This will basically use a transform that is used with the primitives language object. This will always return a suitable transform for a primitive.
    See Also:
    DefaultMatcher
    • Constructor Summary

      Constructors 
      Constructor Description
      PrimitiveMatcher()
      Constructor for the PrimitiveMatcher object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Transform match​(java.lang.Class type)
      This method is used to match the specified type to primitive transform implementations.
      • Methods inherited from class java.lang.Object

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

      • PrimitiveMatcher

        public PrimitiveMatcher()
        Constructor for the PrimitiveMatcher object. The primitive matcher is used to resolve a transform instance to convert primitive types to an from strings. If a match is not found with this matcher then an exception is thrown.
    • Method Detail

      • match

        public Transform match​(java.lang.Class type)
                        throws java.lang.Exception
        This method is used to match the specified type to primitive transform implementations. If this is given a primitive then it will always return a suitable Transform. If however it is given an object type an exception is thrown.
        Specified by:
        match in interface Matcher
        Parameters:
        type - this is the primitive type to be transformed
        Returns:
        this returns a stock transform for the primitive
        Throws:
        java.lang.Exception