Index
All Classes and Interfaces|All Packages|Serialized Form
A
- AnyBeanReader - Class in org.klojang.invoke
-
A dynamic bean reader class for arbitrary types of beans.
- AnyBeanReader() - Constructor for class org.klojang.invoke.AnyBeanReader
-
Creates a new
AnyBeanReader
. - AnyBeanReader(boolean) - Constructor for class org.klojang.invoke.AnyBeanReader
-
Creates a new
AnyBeanReader
.
B
- BeanReader<T> - Class in org.klojang.invoke
-
A dynamic bean reader class.
- BeanReader(Class<T>, boolean, BeanValueTransformer<T>, IncludeExclude, String...) - Constructor for class org.klojang.invoke.BeanReader
-
Creates a
BeanReader
for the specified class. - BeanReader(Class<T>, boolean, IncludeExclude, String...) - Constructor for class org.klojang.invoke.BeanReader
-
Creates a
BeanReader
for the specified class. - BeanReader(Class<T>, String...) - Constructor for class org.klojang.invoke.BeanReader
-
Creates a
BeanReader
for the specified class. - BeanReader(Class<T>, BeanValueTransformer<T>, String...) - Constructor for class org.klojang.invoke.BeanReader
-
Creates a
BeanReader
for the specified class. - BeanReader(Class<T>, BeanValueTransformer<T>, IncludeExclude, String...) - Constructor for class org.klojang.invoke.BeanReader
-
Creates a
BeanReader
for the specified class. - BeanReader(Class<T>, IncludeExclude, String...) - Constructor for class org.klojang.invoke.BeanReader
-
Creates a
BeanReader
for the specified class. - BeanReaderBuilder<T> - Class in org.klojang.invoke
-
A
Builder
class forBeanReader
instances. - BeanValueTransformer<T> - Interface in org.klojang.invoke
-
A
BeanValueTransformer
can be "inserted" into aBeanReader
andBeanWriter
to modify the value to be returned to the user by theBeanReader
, or to be written to the bean by theBeanWriter
. - BeanWriter<T> - Class in org.klojang.invoke
-
A dynamic bean writer class.
- BeanWriter(Class<T>, String...) - Constructor for class org.klojang.invoke.BeanWriter
-
Creates a
BeanWriter
for the specified class. - BeanWriter(Class<T>, BeanValueTransformer<T>, String...) - Constructor for class org.klojang.invoke.BeanWriter
-
Creates a
BeanWriter
for the specified class. - BeanWriter(Class<T>, BeanValueTransformer<T>, IncludeExclude, String...) - Constructor for class org.klojang.invoke.BeanWriter
-
Creates a
BeanWriter
for the specified class. - BeanWriter(Class<T>, IncludeExclude, String...) - Constructor for class org.klojang.invoke.BeanWriter
-
Creates a
BeanWriter
for the specified class. - build() - Method in class org.klojang.invoke.BeanReaderBuilder
-
Returns a new
BeanReader
for instances of typeT
.
C
- canRead(String) - Method in class org.klojang.invoke.BeanReader
-
Returns
true
if the specified string represents a property that can be read by thisBeanReader
. - canWrite(String) - Method in class org.klojang.invoke.BeanWriter
-
Returns
true
if the specified string represents a property that can be written by thisBeanWriter
. - copy(Map<String, ?>, T) - Method in class org.klojang.invoke.BeanWriter
-
Overwrites all properties in the specified bean with the corresponding values in the specified map.
- copy(T, T) - Method in class org.klojang.invoke.BeanWriter
-
Overwrites all properties in the second bean with the values they have in the first bean.
- copyNonNull(Map<String, ?>, T) - Method in class org.klojang.invoke.BeanWriter
-
Copies all non-null values from the specified map to the specified bean.
- copyNonNull(T, T) - Method in class org.klojang.invoke.BeanWriter
-
Copies all non-null properties from the first bean to the second bean.
D
- DeadEndException - Exception Class in org.klojang.path
-
Thrown by a
PathWalker
if a path-read or path-write error occurs. - deserialize(Path, int) - Method in interface org.klojang.path.PathSegmentDeserializer
-
Converts the path segment at the specified index to a map key.
E
- enrich(Map<String, ?>, T) - Method in class org.klojang.invoke.BeanWriter
-
Overwrites all properties in the specified bean whose value is
null
with the corresponding values in the specified map. - enrich(T, T) - Method in class org.klojang.invoke.BeanWriter
-
Overwrites all properties in the second bean whose value is
null
with the values they have in the first bean. - Exception Suppression - Search tag in class org.klojang.path.PathWalker
- Section
- EXCLUDE - Enum constant in enum class org.klojang.invoke.IncludeExclude
-
Exclude the provided properties from being read/written.
F
- forClass(Class<T>) - Static method in class org.klojang.invoke.BeanReader
-
Returns a
Builder
forBeanReader
instances.
G
- getBeanClass() - Method in class org.klojang.invoke.BeanReader
-
Returns the class of the objects this
BeanReader
can read. - getBeanClass() - Method in class org.klojang.invoke.BeanWriter
-
Returns the type of the objects this
BeanWriter
can write to. - getBeanClass() - Method in exception class org.klojang.invoke.IllegalAssignmentException
-
Returns the class containing the property.
- getGetters(Class<?>, boolean) - Method in class org.klojang.invoke.GetterFactory
-
Returns the public
getters
for the specified class. - getIncludedGetters() - Method in class org.klojang.invoke.BeanReader
-
Returns the
getters
used by theBeanReader
to read bean properties. - getIncludedSetters() - Method in class org.klojang.invoke.BeanWriter
-
Returns the
setters
used by theBeanWriter
to write bean properties. - getParamType() - Method in class org.klojang.invoke.Setter
-
Returns the type of the property.
- getProperty() - Method in class org.klojang.invoke.Getter
-
Returns the name of the property.
- getProperty() - Method in class org.klojang.invoke.Setter
-
Returns the name of the property being set by this
Setter
. - getPropertyName() - Method in exception class org.klojang.invoke.IllegalAssignmentException
-
Returns the name of the property.
- getPropertyType() - Method in exception class org.klojang.invoke.IllegalAssignmentException
-
Returns the class of the property.
- getReadableProperties() - Method in class org.klojang.invoke.BeanReader
-
Returns the properties that this
BeanReader
can read. - getReturnType() - Method in class org.klojang.invoke.Getter
-
Returns the type of the property.
- getSetters(Class<?>) - Method in class org.klojang.invoke.SetterFactory
-
Returns the public
setters
for the specified class. - Getter - Class in org.klojang.invoke
-
Represents a getter for a single property.
- GetterFactory - Class in org.klojang.invoke
-
Assembles, caches, and supplies
getters
for classes. - getValue() - Method in exception class org.klojang.invoke.IllegalAssignmentException
-
Returns the value that was attempted to be assigned to the property
- getWritableProperties() - Method in class org.klojang.invoke.BeanWriter
-
Returns the properties that this
BeanWriter
will write.
I
- identity() - Static method in interface org.klojang.invoke.BeanValueTransformer
-
The no-op transformer.
- illegalAssignment(Object) - Method in class org.klojang.invoke.Setter
-
Generates an
IllegalAssignmentException
indicating that the specified value cannot be assigned to the property encapsulated by thisSetter
. - IllegalAssignmentException - Exception Class in org.klojang.invoke
-
Thrown by a
BeanWriter
if it failed to write a value to a property, for example because of a type mismatch. - INCLUDE - Enum constant in enum class org.klojang.invoke.IncludeExclude
-
Only allow the provided properties to be read/written
- IncludeExclude - Enum Class in org.klojang.invoke
-
Used to indicate whether you want to allow or disallow properties from being read by a
BeanReader
or written by aBeanWriter
. - INSTANCE - Static variable in class org.klojang.invoke.GetterFactory
-
The one and only instance of
GetterFactory
. - INSTANCE - Static variable in class org.klojang.invoke.SetterFactory
-
The one and only instance of
SetterFactory
.
N
- NoPublicGettersException - Exception Class in org.klojang.invoke
-
Thrown if a
BeanReader
is created for a class with zero public getters, or if they were all excluded while constructing theBeanReader
. - NoPublicSettersException - Exception Class in org.klojang.invoke
-
Thrown if a
BeanWriter
is created for a class with zero public setters, or if they were all excluded while constructing theBeanWriter
. - noSuchProperty(Object, String) - Static method in exception class org.klojang.invoke.NoSuchPropertyException
-
Returns a
NoSuchPropertyException
for the specified name. - NoSuchPropertyException - Exception Class in org.klojang.invoke
-
Thrown when attempting to read or write a non-existent or inaccessible bean property.
O
- org.klojang.invoke - module org.klojang.invoke
-
Klojang Invoke is a module focused on path-based object access and dynamic invocation.
- org.klojang.invoke - package org.klojang.invoke
-
Provides a bean reader and bean writer based on method handles and a minimal amount of reflection.
- org.klojang.path - package org.klojang.path
-
Classes related to following a path to the object or resource denoted by it.
P
- Path Segment Deserialization - Search tag in class org.klojang.path.PathWalker
- Section
- PathSegmentDeserializer - Interface in org.klojang.path
-
Specifies how to deserialize a path segment.
- PathTreeWalker - Class in org.klojang.path
-
The
PathTreeWalker
is functionally equivalent to thePathWalker
class. - PathTreeWalker(String...) - Constructor for class org.klojang.path.PathTreeWalker
-
Creates a
PathWalker
for the specified paths. - PathTreeWalker(List<Path>) - Constructor for class org.klojang.path.PathTreeWalker
-
Creates a
PathWalker
for the specified paths. - PathTreeWalker(List<Path>, boolean) - Constructor for class org.klojang.path.PathTreeWalker
-
Creates a
PathWalker
for the specified paths. - PathTreeWalker(List<Path>, boolean, PathSegmentDeserializer) - Constructor for class org.klojang.path.PathTreeWalker
-
Creates a
PathWalker
for the specified paths. - PathTreeWalker(Path...) - Constructor for class org.klojang.path.PathTreeWalker
-
Creates a
PathWalker
for the specified paths. - PathWalker - Class in org.klojang.path
-
A
PathWalker
lets you read from, and write to objects usingPath
objects. - PathWalker(String...) - Constructor for class org.klojang.path.PathWalker
-
Creates a
PathWalker
for the specified paths. - PathWalker(List<Path>) - Constructor for class org.klojang.path.PathWalker
-
Creates a
PathWalker
for the specified paths. - PathWalker(List<Path>, boolean) - Constructor for class org.klojang.path.PathWalker
-
Creates a
PathWalker
for the specified paths. - PathWalker(List<Path>, boolean, PathSegmentDeserializer) - Constructor for class org.klojang.path.PathWalker
-
Creates a
PathWalker
for the specified paths. - PathWalker(Path...) - Constructor for class org.klojang.path.PathWalker
-
Creates a
PathWalker
for the specified paths.
R
- read(Object) - Method in class org.klojang.invoke.Getter
-
Reads the value of the property off the specified bean
- read(Object) - Method in class org.klojang.path.PathWalker
-
Reads the value of the first path specified through the constructor.
- read(Object, String) - Method in class org.klojang.invoke.AnyBeanReader
-
Returns the value of the specified property on the specified bean.
- read(Object, String) - Static method in class org.klojang.path.PathWalker
-
Returns a
Result
object containing the value at the specified path orResult.notAvailable()
if the value could not be retrieved. - read(T, String) - Method in class org.klojang.invoke.BeanReader
-
Returns the value of the specified property on the specified bean.
- readAll(Object) - Method in class org.klojang.path.PathTreeWalker
-
Returns the values of the paths specified through the constructor.
- readAll(Object) - Method in class org.klojang.path.PathWalker
-
Returns the values of the paths specified through the constructor.
- readAllProperties(T) - Method in class org.klojang.invoke.BeanReader
-
Returns the values of all readable properties in the specified JavaBean.
- readIntoList(Object) - Method in class org.klojang.path.PathTreeWalker
-
Returns the values of the paths specified through the constructor.
- readIntoList(Object) - Method in class org.klojang.path.PathWalker
-
Returns the values of the paths specified through the constructor.
- readIntoMap(Object) - Method in class org.klojang.path.PathTreeWalker
-
Returns the values of the paths specified through the constructor.
- readIntoMap(Object) - Method in class org.klojang.path.PathWalker
-
Returns the values of the paths specified through the constructor.
S
- Setter - Class in org.klojang.invoke
-
Represents a setter for a single property.
- SetterFactory - Class in org.klojang.invoke
-
Assembles, caches and supplies
setters
for classes.
T
- transform(T, String, Object) - Method in interface org.klojang.invoke.BeanValueTransformer
-
Transforms the value just retrieved from a bean, or about to be set on a bean.
V
- valueOf(String) - Static method in enum class org.klojang.invoke.IncludeExclude
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class org.klojang.invoke.IncludeExclude
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- with(Class<?>, String...) - Method in class org.klojang.invoke.BeanReaderBuilder
-
Registers the specified names as properties of the specified type.
- withGetter(Class<?>, String...) - Method in class org.klojang.invoke.BeanReaderBuilder
-
Registers the specified method names as getters with the specified return type.
- withInt(String...) - Method in class org.klojang.invoke.BeanReaderBuilder
-
Registers the specified names as
int
properties on the bean class. - withString(String...) - Method in class org.klojang.invoke.BeanReaderBuilder
-
Registers the specified names as
String
properties on the bean class. - withTransformer(BeanValueTransformer<T>) - Method in class org.klojang.invoke.BeanReaderBuilder
- write(Object, Object) - Method in class org.klojang.invoke.Setter
-
Sets the property on the specified bean to the specified value.
- write(Object, Object) - Method in class org.klojang.path.PathWalker
-
Sets the value of the first path specified through the constructor.
- write(T, String, Object) - Method in class org.klojang.invoke.BeanWriter
-
Sets the specified property to the specified value.
- writeValues(Object, Object...) - Method in class org.klojang.path.PathWalker
-
Sets the values of the paths specified through the constructor.
- writeValues(Object, List<Object>) - Method in class org.klojang.path.PathWalker
-
Sets the values of the paths specified through the constructor.
All Classes and Interfaces|All Packages|Serialized Form