Class IsUpper


  • public class IsUpper
    extends PrimitiveFunction
    Determines whether a character is uppercase.
    • Constructor Summary

      Constructors 
      Constructor Description
      IsUpper()  
    • Constructor Detail

      • IsUpper

        public IsUpper()
    • Method Detail

      • name

        public Name name()
        Gets the qualified name of this primitive function.
        Specified by:
        name in class PrimitiveFunction
        Returns:
        the name "hydra.lib.chars.isUpper"
      • type

        public TypeScheme type()
        Gets the type scheme for this function.
        Specified by:
        type in class PrimitiveFunction
        Returns:
        the type scheme representing int32 to boolean function
      • implementation

        protected java.util.function.Function<java.util.List<Term>,​java.util.function.Function<Context,​java.util.function.Function<Graph,​Either<InContext<Error_>,​Term>>>> implementation()
        Provides the implementation of this primitive function.
        Specified by:
        implementation in class PrimitiveFunction
        Returns:
        a function that takes a list of terms and returns a flow producing a boolean term
      • apply

        public static boolean apply​(int codePoint)
        Checks whether the given code point is uppercase.
        Parameters:
        codePoint - the Unicode code point to test
        Returns:
        true if the code point is uppercase, false otherwise