Class UReflectionValidator

java.lang.Object
ushiosan.jvm.internal.validators.UClassValidator
ushiosan.jvm.internal.validators.UReflectionValidator
Direct Known Subclasses:
UReflectionImpl

public class UReflectionValidator extends UClassValidator
  • Constructor Details

    • UReflectionValidator

      public UReflectionValidator()
  • Method Details

    • checkRecursiveCall

      public static void checkRecursiveCall(@NotNull @NotNull Class<?> cls, @NotNull @NotNull String methodName) throws URecursiveCallException
      Checks if a recursive call is being made at a certain point in the program.
      Parameters:
      cls - the class that you want to parse to check for recursion
      methodName - the method that you want to search within the call stack
      Throws:
      URecursiveCallException - error if it is detected that the stack has several calls of the same method recursively.