Record Class ClassInfo

java.lang.Object
java.lang.Record
ortus.boxlang.compiler.ClassInfo

public record ClassInfo(FQN fqn, BoxFQN boxFqn, String baseclass, String returnType, BoxSourceType sourceType, String source, long lastModified, DiskClassLoader[] diskClassLoader, InterfaceProxyDefinition interfaceProxyDefinition, IBoxpiler boxpiler, ResolvedFilePath resolvedFilePath, int _hashCode) extends Record
A Record that represents the information about a class to be compiled
  • Constructor Details

    • ClassInfo

      public ClassInfo(FQN fqn, BoxFQN boxFqn, String baseclass, String returnType, BoxSourceType sourceType, String source, long lastModified, DiskClassLoader[] diskClassLoader, InterfaceProxyDefinition interfaceProxyDefinition, IBoxpiler boxpiler, ResolvedFilePath resolvedFilePath, int _hashCode)
      Creates an instance of a ClassInfo record class.
      Parameters:
      fqn - the value for the fqn record component
      boxFqn - the value for the boxFqn record component
      baseclass - the value for the baseclass record component
      returnType - the value for the returnType record component
      sourceType - the value for the sourceType record component
      source - the value for the source record component
      lastModified - the value for the lastModified record component
      diskClassLoader - the value for the diskClassLoader record component
      interfaceProxyDefinition - the value for the interfaceProxyDefinition record component
      boxpiler - the value for the boxpiler record component
      resolvedFilePath - the value for the resolvedFilePath record component
      _hashCode - the value for the _hashCode record component
  • Method Details

    • hashCode

      public int hashCode()
      Hash Code
      Specified by:
      hashCode in class Record
    • equals

      public boolean equals(Object obj)
      Equals
      Specified by:
      equals in class Record
    • forScript

      public static ClassInfo forScript(String source, BoxSourceType sourceType, IBoxpiler boxpiler)
    • forStatement

      public static ClassInfo forStatement(String source, BoxSourceType sourceType, IBoxpiler boxpiler)
    • forTemplate

      public static ClassInfo forTemplate(ResolvedFilePath resolvedFilePath, BoxSourceType sourceType, IBoxpiler boxpiler)
    • forClass

      public static ClassInfo forClass(ResolvedFilePath resolvedFilePath, BoxSourceType sourceType, IBoxpiler boxpiler)
    • forClass

      public static ClassInfo forClass(String source, BoxSourceType sourceType, IBoxpiler boxpiler)
    • forInterfaceProxy

      public static ClassInfo forInterfaceProxy(String name, InterfaceProxyDefinition interfaceProxyDefinition, IBoxpiler boxpiler)
    • toString

      public 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
    • getClassLoader

      public DiskClassLoader getClassLoader()
    • getDiskClass

      public Class<IBoxRunnable> getDiskClass()
      Get a class for a class name from disk
      Returns:
      The loaded class
    • getDiskClassProxy

      public Class<IProxyRunnable> getDiskClassProxy()
      Get a proxy class for a class name from disk
      Returns:
      The loaded class
    • packageName

      public String packageName()
    • className

      public String className()
    • isClass

      public Boolean isClass()
    • classPoolName

      public String classPoolName()
    • isTrustedCache

      public static boolean isTrustedCache()
    • sourceType

      public BoxSourceType sourceType()
      Returns the value of the sourceType record component.
      Returns:
      the value of the sourceType record component
    • fqn

      public FQN fqn()
      Returns the value of the fqn record component.
      Returns:
      the value of the fqn record component
    • boxFqn

      public BoxFQN boxFqn()
      Returns the value of the boxFqn record component.
      Returns:
      the value of the boxFqn record component
    • baseclass

      public String baseclass()
      Returns the value of the baseclass record component.
      Returns:
      the value of the baseclass record component
    • returnType

      public String returnType()
      Returns the value of the returnType record component.
      Returns:
      the value of the returnType record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • lastModified

      public long lastModified()
      Returns the value of the lastModified record component.
      Returns:
      the value of the lastModified record component
    • diskClassLoader

      public DiskClassLoader[] diskClassLoader()
      Returns the value of the diskClassLoader record component.
      Returns:
      the value of the diskClassLoader record component
    • interfaceProxyDefinition

      public InterfaceProxyDefinition interfaceProxyDefinition()
      Returns the value of the interfaceProxyDefinition record component.
      Returns:
      the value of the interfaceProxyDefinition record component
    • boxpiler

      public IBoxpiler boxpiler()
      Returns the value of the boxpiler record component.
      Returns:
      the value of the boxpiler record component
    • resolvedFilePath

      public ResolvedFilePath resolvedFilePath()
      Returns the value of the resolvedFilePath record component.
      Returns:
      the value of the resolvedFilePath record component
    • _hashCode

      public int _hashCode()
      Returns the value of the _hashCode record component.
      Returns:
      the value of the _hashCode record component