$ A C D E F G H I M N P R S V

$

$(String, Object...) - Method in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
$(String, Object...) - Method in interface net.sf.staccatocommons.dynamic.Dynamic
Synonym for Dynamic.chainingSend(String, Object...)

A

AbstractDynamic - Class in net.sf.staccatocommons.dynamic
 
AbstractDynamic() - Constructor for class net.sf.staccatocommons.dynamic.AbstractDynamic
 
as(Class<T>) - Method in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
as(Class<T>) - Method in interface net.sf.staccatocommons.dynamic.Dynamic
"casts" this dynamic to the desired type, by returning the wrapped value, if it can be casted to the given class, or by returning a proxy that forwards messages to Dynamic.send(String, Object...), otherwise.

C

chainingAs(Class<T>) - Method in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
chainingAs(Class<T>) - Method in interface net.sf.staccatocommons.dynamic.Dynamic
"casts" this dynamic to the desired type, by returning the wrapped value, if it can be casted to the given class, or by returning a proxy that forwards messages to Dynamic.chainingSend(String, Object...), casting with Dynamic.chainingAs(Class) the result to the desired method return type, otherwise.
chainingSend(String, Object...) - Method in interface net.sf.staccatocommons.dynamic.Dynamic
Sends a message to this Dynamic, as defined by Dynamic.send(String, Object...), and returns the message result wrapped as a dynamic, or Dynamics.null_(), if the result was null.
chainingSend(String, Object...) - Method in class net.sf.staccatocommons.dynamic.internal.NullDynamic
 
chainingSend(String, Object...) - Method in class net.sf.staccatocommons.dynamic.internal.ReflectiveDynamic
 
createNotUnderstoodMessage() - Method in class net.sf.staccatocommons.dynamic.internal.MethodDescriptor
Answers a String that signals that a message was not understood

D

delayedSend(String, Object...) - Method in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
delayedSend(String, Object...) - Method in interface net.sf.staccatocommons.dynamic.Dynamic
Asynchronously sends a message to this dynamic object by returning a thunk that, when evaluated, performs the actual message passing
Dynamic - Interface in net.sf.staccatocommons.dynamic
Dynamics are wrapper objects that are capable of receiving any message, and determine on runtime which method of the wrapped objecy will be actually evaluated.
Dynamics - Class in net.sf.staccatocommons.dynamic
Class methods for creating simple Dynamics
Dynamics() - Constructor for class net.sf.staccatocommons.dynamic.Dynamics
 

E

equals(Object) - Method in class net.sf.staccatocommons.dynamic.internal.MethodDescriptor
 

F

from(Object) - Static method in class net.sf.staccatocommons.dynamic.Dynamics
Answers a new Dynamic wrapper for the given object, that uses reflection to invoke methods, and property descriptors to get
fromClass(Class<?>) - Static method in class net.sf.staccatocommons.dynamic.Dynamics
Answer a new Dynamic that wraps a new instance of the given class
fromClassName(String) - Static method in class net.sf.staccatocommons.dynamic.Dynamics
Answer a new Dynamic that wraps a new instance of a class for its given classname

G

getArgTypes() - Method in class net.sf.staccatocommons.dynamic.internal.MethodDescriptor
 
getInvoker() - Method in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
getInvoker() - Method in class net.sf.staccatocommons.dynamic.internal.NullDynamic
 
getSelector() - Method in class net.sf.staccatocommons.dynamic.internal.MethodDescriptor
 
getWrapperForType(Class<?>) - Static method in class net.sf.staccatocommons.dynamic.internal.PrimitiveWrappers
 

H

hashCode() - Method in class net.sf.staccatocommons.dynamic.internal.MethodDescriptor
 

I

InstantiationFailedException - Exception in net.sf.staccatocommons.dynamic
 
InstantiationFailedException(Throwable) - Constructor for exception net.sf.staccatocommons.dynamic.InstantiationFailedException
Creates a new InstantiationFailedException
isPrimitiveWrapperFor(Class<?>, Class<?>) - Static method in class net.sf.staccatocommons.dynamic.internal.PrimitiveWrappers
If a class is the wrapper of the another

M

MessageNotUnderstoodException - Exception in net.sf.staccatocommons.dynamic
An exception that denotes that a message was not understood by a ReflectiveDynamic, because the underlying object did not have a method that matches a given MethodDescriptor
MessageNotUnderstoodException(MethodDescriptor) - Constructor for exception net.sf.staccatocommons.dynamic.MessageNotUnderstoodException
Creates a new MessageNotUnderstoodException
MessageNotUnderstoodException(String) - Constructor for exception net.sf.staccatocommons.dynamic.MessageNotUnderstoodException
Creates a new MessageNotUnderstoodException
MethodDescriptor - Class in net.sf.staccatocommons.dynamic.internal
A message and its receptor class
MethodDescriptor(Class<?>, String, Class<?>[]) - Constructor for class net.sf.staccatocommons.dynamic.internal.MethodDescriptor
Creates a new MethodDescriptor
MethodEvaluationException - Exception in net.sf.staccatocommons.dynamic
 
MethodEvaluationException(Throwable) - Constructor for exception net.sf.staccatocommons.dynamic.MethodEvaluationException
Creates a new MethodEvaluationException

N

net.sf.staccatocommons.dynamic - package net.sf.staccatocommons.dynamic
 
net.sf.staccatocommons.dynamic.internal - package net.sf.staccatocommons.dynamic.internal
 
null_() - Static method in class net.sf.staccatocommons.dynamic.Dynamics
Answers the null Dynamic, that is, a Dynamic that understands all messages, by doing nothing and returning null.
NULL_INVOKER - Static variable in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
NullDynamic - Class in net.sf.staccatocommons.dynamic.internal
 
NullDynamic() - Constructor for class net.sf.staccatocommons.dynamic.internal.NullDynamic
 
nullSafeFrom(Object) - Static method in class net.sf.staccatocommons.dynamic.Dynamics
Answers a new Dynamic wrapper for the given object, if it is not null, or null_() otherwise

P

PrimitiveWrappers - Class in net.sf.staccatocommons.dynamic.internal
 
PrimitiveWrappers() - Constructor for class net.sf.staccatocommons.dynamic.internal.PrimitiveWrappers
 
PROXY_FACTORY - Static variable in class net.sf.staccatocommons.dynamic.AbstractDynamic
 

R

ReflectiveDynamic - Class in net.sf.staccatocommons.dynamic.internal
 
ReflectiveDynamic(Object) - Constructor for class net.sf.staccatocommons.dynamic.internal.ReflectiveDynamic
Creates a new ReflectiveDynamic

S

send(String, Object...) - Method in interface net.sf.staccatocommons.dynamic.Dynamic
Sends a message to this Dynamic, and returns the message result If there is no method matching for the given selector and argument count and types, the message is said to not being understood and a MessageNotUnderstoodException is thrown If there exists more than one method matching the given selector and arguments count and types, Dynamic makes no assumptions about which one will be evaluated.
send(String, Object...) - Method in class net.sf.staccatocommons.dynamic.internal.NullDynamic
 
send(String, Object...) - Method in class net.sf.staccatocommons.dynamic.internal.ReflectiveDynamic
 

V

value() - Method in interface net.sf.staccatocommons.dynamic.Dynamic
The wrapped value
value() - Method in class net.sf.staccatocommons.dynamic.internal.NullDynamic
 
value() - Method in class net.sf.staccatocommons.dynamic.internal.ReflectiveDynamic
Answers the object wrapped by this dynamic
valueIsInstanceOf(Class<?>) - Method in class net.sf.staccatocommons.dynamic.AbstractDynamic
 
valueIsInstanceOf(Class<?>) - Method in class net.sf.staccatocommons.dynamic.internal.NullDynamic
 

$ A C D E F G H I M N P R S V

Copyright © 2010-2011 Staccato-Commons. All Rights Reserved.