Package ortus.boxlang.compiler
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 Summary
ConstructorsConstructorDescriptionClassInfo(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 aClassInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of the_hashCoderecord component.Returns the value of thebaseclassrecord component.boxFqn()Returns the value of theboxFqnrecord component.boxpiler()Returns the value of theboxpilerrecord component.Returns the value of thediskClassLoaderrecord component.booleanEqualsstatic ClassInfoforClass(String source, BoxSourceType sourceType, IBoxpiler boxpiler) static ClassInfoforClass(ResolvedFilePath resolvedFilePath, BoxSourceType sourceType, IBoxpiler boxpiler) static ClassInfoforInterfaceProxy(String name, InterfaceProxyDefinition interfaceProxyDefinition, IBoxpiler boxpiler) static ClassInfoforScript(String source, BoxSourceType sourceType, IBoxpiler boxpiler) static ClassInfoforStatement(String source, BoxSourceType sourceType, IBoxpiler boxpiler) static ClassInfoforTemplate(ResolvedFilePath resolvedFilePath, BoxSourceType sourceType, IBoxpiler boxpiler) fqn()Returns the value of thefqnrecord component.Get a class for a class name from diskGet a proxy class for a class name from diskinthashCode()Hash CodeReturns the value of theinterfaceProxyDefinitionrecord component.isClass()static booleanlongReturns the value of thelastModifiedrecord component.Returns the value of theresolvedFilePathrecord component.Returns the value of thereturnTyperecord component.source()Returns the value of thesourcerecord component.Returns the value of thesourceTyperecord component.toString()Returns a string representation of this record class.
-
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 aClassInforecord class.- Parameters:
fqn- the value for thefqnrecord componentboxFqn- the value for theboxFqnrecord componentbaseclass- the value for thebaseclassrecord componentreturnType- the value for thereturnTyperecord componentsourceType- the value for thesourceTyperecord componentsource- the value for thesourcerecord componentlastModified- the value for thelastModifiedrecord componentdiskClassLoader- the value for thediskClassLoaderrecord componentinterfaceProxyDefinition- the value for theinterfaceProxyDefinitionrecord componentboxpiler- the value for theboxpilerrecord componentresolvedFilePath- the value for theresolvedFilePathrecord component_hashCode- the value for the_hashCoderecord component
-
-
Method Details
-
hashCode
public int hashCode()Hash Code -
equals
Equals -
forScript
-
forStatement
-
forTemplate
public static ClassInfo forTemplate(ResolvedFilePath resolvedFilePath, BoxSourceType sourceType, IBoxpiler boxpiler) -
forClass
public static ClassInfo forClass(ResolvedFilePath resolvedFilePath, BoxSourceType sourceType, IBoxpiler boxpiler) -
forClass
-
forInterfaceProxy
public static ClassInfo forInterfaceProxy(String name, InterfaceProxyDefinition interfaceProxyDefinition, IBoxpiler boxpiler) -
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. -
getClassLoader
-
getDiskClass
Get a class for a class name from disk- Returns:
- The loaded class
-
getDiskClassProxy
Get a proxy class for a class name from disk- Returns:
- The loaded class
-
packageName
-
className
-
isClass
-
classPoolName
-
isTrustedCache
public static boolean isTrustedCache() -
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
fqn
Returns the value of thefqnrecord component.- Returns:
- the value of the
fqnrecord component
-
boxFqn
Returns the value of theboxFqnrecord component.- Returns:
- the value of the
boxFqnrecord component
-
baseclass
Returns the value of thebaseclassrecord component.- Returns:
- the value of the
baseclassrecord component
-
returnType
Returns the value of thereturnTyperecord component.- Returns:
- the value of the
returnTyperecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
lastModified
public long lastModified()Returns the value of thelastModifiedrecord component.- Returns:
- the value of the
lastModifiedrecord component
-
diskClassLoader
Returns the value of thediskClassLoaderrecord component.- Returns:
- the value of the
diskClassLoaderrecord component
-
interfaceProxyDefinition
Returns the value of theinterfaceProxyDefinitionrecord component.- Returns:
- the value of the
interfaceProxyDefinitionrecord component
-
boxpiler
Returns the value of theboxpilerrecord component.- Returns:
- the value of the
boxpilerrecord component
-
resolvedFilePath
Returns the value of theresolvedFilePathrecord component.- Returns:
- the value of the
resolvedFilePathrecord component
-
_hashCode
public int _hashCode()Returns the value of the_hashCoderecord component.- Returns:
- the value of the
_hashCoderecord component
-