Package hydra.lib.chars
Class IsUpper
- java.lang.Object
-
- hydra.tools.PrimitiveFunction
-
- hydra.lib.chars.IsUpper
-
public class IsUpper extends PrimitiveFunction
Determines whether a character is uppercase.
-
-
Constructor Summary
Constructors Constructor Description IsUpper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanapply(int codePoint)Checks whether the given code point is uppercase.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.Namename()Gets the qualified name of this primitive function.TypeSchemetype()Gets the type scheme for this function.-
Methods inherited from class hydra.tools.PrimitiveFunction
term, toNative
-
-
-
-
Method Detail
-
name
public Name name()
Gets the qualified name of this primitive function.- Specified by:
namein classPrimitiveFunction- Returns:
- the name "hydra.lib.chars.isUpper"
-
type
public TypeScheme type()
Gets the type scheme for this function.- Specified by:
typein classPrimitiveFunction- 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:
implementationin classPrimitiveFunction- 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
-
-