Serialized Form
-
Package org.daiitech.naftah.builtin.lang
-
Class org.daiitech.naftah.builtin.lang.BuiltinFunction
class BuiltinFunction extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
Custom deserialization logic. Reads the non-transient fields using default deserialization, then restores the transientmethodfield by locating the method by name in the deserialized class.- Parameters:
ois- the input stream to read from- Throws:
IOException- if an I/O error occursClassNotFoundException- if the class for the method cannot be found
-
writeObject
Custom serialization logic. Writes the non-transient fields using default serialization.- Parameters:
oos- the output stream to write to- Throws:
IOException- if an I/O error occurs
-
-
Serialized Fields
-
className
String className
The fully qualified name of the class declaring the method. -
functionInfo
NaftahFunction functionInfo
Function information for this function. -
methodName
String methodName
The name of the method. -
methodParameterTypes
Class<?>[] methodParameterTypes
The method parameter types. -
providerInfo
NaftahFunctionProvider providerInfo
Provider information for this function.
-
-
Class org.daiitech.naftah.builtin.lang.DynamicNumber
class DynamicNumber extends Number implements Serializable-
Serialized Fields
-
value
Number value
The underlying numeric value.
-
-
-
Class org.daiitech.naftah.builtin.lang.JvmClassInitializer
class JvmClassInitializer extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
Custom deserialization logic for restoring the transientConstructor.After reading object data, this method searches the declaring class for a constructor with matching parameter types and restores it.
- Parameters:
ois- the object input stream- Throws:
IOException- if an I/O error occursClassNotFoundException- if a class cannot be found during deserialization
-
writeObject
Custom serialization logic for writing non-transient fields.- Parameters:
oos- the object output stream- Throws:
IOException- if an I/O error occurs
-
-
Serialized Fields
-
clazz
Class<?> clazz
The class declaring this constructor. -
constructorParameterTypes
Class<?>[] constructorParameterTypes
The parameter types accepted by this constructor. -
isInvocable
boolean isInvocable
Whether this constructor is invocable (accessible and valid). -
qualifiedName
String qualifiedName
The fully qualified signature identifying this constructor.
-
-
Class org.daiitech.naftah.builtin.lang.JvmFunction
class JvmFunction extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
Custom deserialization logic to restore the transientMethodby searching methods with matching name and parameter types in the class.- Parameters:
ois- the object input stream- Throws:
IOException- if an I/O error occursClassNotFoundException- if the class of a serialized object cannot be found
-
writeObject
Custom serialization logic to write the object's non-transient fields.- Parameters:
oos- the object output stream- Throws:
IOException- if an I/O error occurs
-
-
Serialized Fields
-
clazz
Class<?> clazz
The class that declares the method. -
isInvocable
boolean isInvocable
Whether the method is invocable. -
isStatic
boolean isStatic
Whether the method is static. -
methodName
String methodName
The name of the method. -
methodParameterTypes
Class<?>[] methodParameterTypes
The method parameter types. -
qualifiedCall
String qualifiedCall
Fully qualified call signature of the method.
-
-
Record Class org.daiitech.naftah.builtin.lang.NaftahFunction
class NaftahFunction extends Record implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
aliases
String[] aliases
The field for thealiasesrecord component. -
description
String description
The field for thedescriptionrecord component. -
exceptionTypes
List<Class<?>> exceptionTypes
The field for theexceptionTypesrecord component. -
name
String name
The field for thenamerecord component. -
parameterTypes
List<Class<?>> parameterTypes
The field for theparameterTypesrecord component. -
returnType
Class<?> returnType
The field for thereturnTyperecord component. -
usage
String usage
The field for theusagerecord component. -
useQualifiedAliases
boolean useQualifiedAliases
The field for theuseQualifiedAliasesrecord component. -
useQualifiedName
boolean useQualifiedName
The field for theuseQualifiedNamerecord component.
-
-
Record Class org.daiitech.naftah.builtin.lang.NaftahFunctionProvider
class NaftahFunctionProvider extends Record implements Serializable- serialVersionUID:
- 1L
-
Serialized Fields
-
description
String description
The field for thedescriptionrecord component. -
functionNames
List<String> functionNames
The field for thefunctionNamesrecord component. -
name
String name
The field for thenamerecord component. -
useQualifiedAliases
boolean useQualifiedAliases
The field for theuseQualifiedAliasesrecord component. -
useQualifiedName
boolean useQualifiedName
The field for theuseQualifiedNamerecord component.
-
-
-
Package org.daiitech.naftah.builtin.utils
-
Package org.daiitech.naftah.builtin.utils.tuple
-
Class org.daiitech.naftah.builtin.utils.tuple.ImmutablePair
- serialVersionUID:
- 1L
-
Class org.daiitech.naftah.builtin.utils.tuple.ImmutableTriple
- serialVersionUID:
- 1L
-
Class org.daiitech.naftah.builtin.utils.tuple.MutablePair
- serialVersionUID:
- 1L
-
Class org.daiitech.naftah.builtin.utils.tuple.MutableTriple
- serialVersionUID:
- 1L
-
Class org.daiitech.naftah.builtin.utils.tuple.Pair
class Pair extends Object implements Serializable- serialVersionUID:
- 1L
-
Class org.daiitech.naftah.builtin.utils.tuple.Triple
class Triple extends Object implements Serializable- serialVersionUID:
- 1L
-
Class org.daiitech.naftah.builtin.utils.tuple.Tuple
class Tuple extends Object implements Serializable- serialVersionUID:
- 1L
-
-
Package org.daiitech.naftah.errors
-
Error org.daiitech.naftah.errors.NaftahBugError
class NaftahBugError extends AssertionError implements Serializable- serialVersionUID:
- -9165076784700059275L
-
Serialized Fields
-
column
int column
The index of the first character of this token relative to the beginning of the line at which it occurs, 0..n-1. -
exception
Throwable exception
The underlying exception that caused this error, if any. -
line
int line
The line number on which the 1st character of this token was matched, line=1..n. -
message
String message
The descriptive message text for the bug error.
-
-
-
Package org.daiitech.naftah.utils.reflect
-
Class org.daiitech.naftah.utils.reflect.ClassScanningResult
class ClassScanningResult extends Object implements Serializable- serialVersionUID:
- 1L
-
Serialization Methods
-
readObject
Custom deserialization logic forClassScanningResult.Reads the map of class names to URL strings from the stream and reconstructs
URLClassLoaderinstances for theClassScanningResult.classNamesmap.- Parameters:
in- the ObjectInputStream to read the object from- Throws:
IOException- if an I/O error occurs during deserializationClassNotFoundException- if a class required during deserialization cannot be found
-
writeObject
Custom serialization logic forClassScanningResult.Since
URLClassLoaderand otherClassLoaderinstances are not serializable, this method converts eachURLClassLoaderinClassScanningResult.classNamesto a list of its URL strings and writes that map to the stream.- Parameters:
out- the ObjectOutputStream to write the object to- Throws:
IOException- if an I/O error occurs during serialization
-
-
Serialized Fields
-
accessibleClasses
Map<String,
Class<?>> accessibleClasses Subset of classes that are accessible for reflection or usage. -
arabicClassQualifiers
Map<String,
String> arabicClassQualifiers Set of fully qualified class names in Arabic notation mapped to original java qualified class name. -
builtinFunctions
Map<String,
List<BuiltinFunction>> builtinFunctions Maps qualified method or function names to lists of builtin functions. -
classes
Map<String,
Class<?>> classes Maps fully qualified class names to their corresponding Class objects. -
classQualifiers
Set<String> classQualifiers
Set of fully qualified class names discovered. -
instantiableClasses
Map<String,
Class<?>> instantiableClasses Subset of classes that can be instantiated (e.g., not abstract). -
jvmClassInitializers
Map<String,
List<JvmClassInitializer>> jvmClassInitializers Maps qualified Java class names to lists ofJvmClassInitializerconstructors. -
jvmFunctions
Map<String,
List<JvmFunction>> jvmFunctions Maps qualified method or function names to lists of JVM functions (methods).
-
-