|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.perisic.shadow.Shadowable com.perisic.shadow.example.lib.NiceFellow
A simple example of a Java class that can be shadowed.
Constructor Summary | |
---|---|
NiceFellow(java.lang.String theName)
Consruction by name. |
Method Summary | |
---|---|
java.lang.Integer |
getHappyness()
Accessor method for happyness attribute. |
java.lang.String |
getName()
Accessor method for name. |
void |
printMood()
Prints either that the nice fellow feels happy or sad, depending if happyness is greater then 0. |
void |
setHappyness(java.lang.Integer h)
Modifier method for happyness attribute. |
void |
smile(java.lang.Integer howmuch)
Smiling increases the happyness by howmuch. |
void |
tellJokeTo(NiceFellow other)
Makes the other smile. |
Methods inherited from class com.perisic.shadow.Shadowable |
---|
addShadow, addShadow, allShadowedClasses, call, getClassShadows, getShadows, removeShadow, removeShadow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NiceFellow(java.lang.String theName)
theName
- The name of the nice fellow.Method Detail |
---|
public void setHappyness(java.lang.Integer h)
h
- The amount of happyness.public java.lang.Integer getHappyness()
public java.lang.String getName()
public void smile(java.lang.Integer howmuch)
howmuch
- How much the happyness will be increased.public void printMood()
public void tellJokeTo(NiceFellow other)
other
- The one who gets the joke told.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |