Record Class FakeReflectionAccessor.FakeClass

java.lang.Object
java.lang.Record
fr.skytasul.reflection.shrieker.FakeReflectionAccessor.FakeClass
All Implemented Interfaces:
fr.skytasul.reflection.ReflectionAccessor.ClassAccessor, Type
Enclosing class:
FakeReflectionAccessor

public static record FakeReflectionAccessor.FakeClass(@NotNull String name, List<FakeReflectionAccessor.FakeClass.FakeField> fields, List<FakeReflectionAccessor.FakeClass.FakeMethod> methods) extends Record implements fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
  • Constructor Details

  • Method Details

    • getTypeName

      @NotNull public @NotNull String getTypeName()
      Specified by:
      getTypeName in interface fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
      Specified by:
      getTypeName in interface Type
    • getArrayType

      @NotNull public @NotNull Type getArrayType()
      Specified by:
      getArrayType in interface fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
    • getClassInstance

      @NotNull public @NotNull Class<?> getClassInstance() throws ClassNotFoundException
      Specified by:
      getClassInstance in interface fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
      Throws:
      ClassNotFoundException
    • getField

      @NotNull public @NotNull fr.skytasul.reflection.ReflectionAccessor.ClassAccessor.FieldAccessor getField(@NotNull @NotNull String original) throws NoSuchFieldException
      Specified by:
      getField in interface fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
      Throws:
      NoSuchFieldException
    • getMethod

      @NotNull public @NotNull fr.skytasul.reflection.ReflectionAccessor.ClassAccessor.MethodAccessor getMethod(@NotNull @NotNull String original, @NotNull @NotNull Type... parameterTypes) throws NoSuchMethodException, ClassNotFoundException
      Specified by:
      getMethod in interface fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
      Throws:
      NoSuchMethodException
      ClassNotFoundException
    • getConstructor

      @NotNull public @NotNull fr.skytasul.reflection.ReflectionAccessor.ClassAccessor.ConstructorAccessor getConstructor(@NotNull @NotNull Type... parameterTypes) throws NoSuchMethodException, SecurityException, ClassNotFoundException
      Specified by:
      getConstructor in interface fr.skytasul.reflection.ReflectionAccessor.ClassAccessor
      Throws:
      NoSuchMethodException
      SecurityException
      ClassNotFoundException
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • name

      @NotNull public @NotNull String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • fields

      Returns the value of the fields record component.
      Returns:
      the value of the fields record component
    • methods

      Returns the value of the methods record component.
      Returns:
      the value of the methods record component