A C E G M N P R S T

A

addShadow(Shadow) - Method in class com.perisic.shadow.Shadowable
Add a shadow to this object.
addShadow(Class, Class) - Static method in class com.perisic.shadow.Shadowable
An instance of shadow is added whenever an ownerobject is instantiated.
allShadowedClasses() - Static method in class com.perisic.shadow.Shadowable
Gets all classes that have been shadowed.

C

CalamityShadow - class com.perisic.shadow.example.shadows.CalamityShadow.
An example shadow that brings calamity over the shadowed objects.
CalamityShadow() - Constructor for class com.perisic.shadow.example.shadows.CalamityShadow
 
call(String, Object...) - Method in class com.perisic.shadow.Shadowable
Executes the method methodName with the arguments args.
com.perisic.shadow - package com.perisic.shadow
 
com.perisic.shadow.example.lib - package com.perisic.shadow.example.lib
 
com.perisic.shadow.example.mains - package com.perisic.shadow.example.mains
 
com.perisic.shadow.example.shadows - package com.perisic.shadow.example.shadows
 
cry() - Method in class com.perisic.shadow.example.shadows.CalamityShadow
The happyness of this object is decreased by one.

E

Extend - class com.perisic.shadow.example.mains.Extend.
This example shows how a shadow can be used to to extend the functionality of a class.
Extend() - Constructor for class com.perisic.shadow.example.mains.Extend
 

G

getClassShadows(Class) - Static method in class com.perisic.shadow.Shadowable
Gets a vector of all shadows that belong to the class owner.
getHappyness() - Method in class com.perisic.shadow.example.lib.NiceFellow
Accessor method for happyness attribute.
getName() - Method in class com.perisic.shadow.example.lib.NiceFellow
Accessor method for name.
getShadows() - Method in class com.perisic.shadow.Shadowable
Gets all shadows that shadow this object.

M

main(String[]) - Static method in class com.perisic.shadow.example.mains.Extend
 
main(String[]) - Static method in class com.perisic.shadow.example.mains.Redefine
 
main(String[]) - Static method in class com.perisic.shadow.example.mains.Simple
 

N

NiceChild - class com.perisic.shadow.example.lib.NiceChild.
An example child class of the NiceFellow class.
NiceChild(String) - Constructor for class com.perisic.shadow.example.lib.NiceChild
A nice child constructed with "Name" initializes a NiceFellow object with "Child Name".
NiceFellow - class com.perisic.shadow.example.lib.NiceFellow.
A simple example of a Java class that can be shadowed.
NiceFellow(String) - Constructor for class com.perisic.shadow.example.lib.NiceFellow
Consruction by name.

P

printMood() - Method in class com.perisic.shadow.example.lib.NiceFellow
Prints either that the nice fellow feels happy or sad, depending if happyness is greater then 0.

R

Redefine - class com.perisic.shadow.example.mains.Redefine.
This example shows how a shadow can be used to to redefine the behaviour of an object.
Redefine() - Constructor for class com.perisic.shadow.example.mains.Redefine
 
removeShadow(Class, Class) - Static method in class com.perisic.shadow.Shadowable
Removes the class shadow that has been added to the class owner.
removeShadow(Shadow) - Method in class com.perisic.shadow.Shadowable
Removes a shadow from this object.

S

Shadow - class com.perisic.shadow.Shadow.
A common base class for all shadows.
Shadow() - Constructor for class com.perisic.shadow.Shadow
 
ShadowException - exception com.perisic.shadow.ShadowException.
A ShadowException is thrown when the method called by Shadowable.call(java.lang.String, java.lang.Object...) throws an exception or error.
ShadowException(String) - Constructor for class com.perisic.shadow.ShadowException
Constructs a new shadow exception with the specified detail message.
ShadowException(Throwable) - Constructor for class com.perisic.shadow.ShadowException
Construction with an exception or error.
Shadowable - class com.perisic.shadow.Shadowable.
A common base class for all shadowable objects.
Shadowable() - Constructor for class com.perisic.shadow.Shadowable
When constructed the instances of the class shadows of this class and all parent classes are added to this object.
Simple - class com.perisic.shadow.example.mains.Simple.
This example does not uses shadows.
Simple() - Constructor for class com.perisic.shadow.example.mains.Simple
 
SmileShadow - class com.perisic.shadow.example.shadows.SmileShadow.
The smile shadow.
SmileShadow() - Constructor for class com.perisic.shadow.example.shadows.SmileShadow
 
setHappyness(Integer) - Method in class com.perisic.shadow.example.lib.NiceFellow
Modifier method for happyness attribute.
shadowOwner() - Method in class com.perisic.shadow.Shadow
Returns the object that is shadowed by this shadow.
smile(Integer) - Method in class com.perisic.shadow.example.lib.NiceFellow
Smiling increases the happyness by howmuch.
smile(Integer) - Method in class com.perisic.shadow.example.shadows.SmileShadow
The method smile prints "laughing out loud".

T

tellCalamityTo(NiceFellow) - Method in class com.perisic.shadow.example.shadows.CalamityShadow
Tells a calamity to other and makes other cry.
tellJokeTo(NiceFellow) - Method in class com.perisic.shadow.example.lib.NiceFellow
Makes the other smile.

A C E G M N P R S T