|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Backend.Maps.FinalMap
harpoon.Backend.Maps.DefaultFinalMap
public class DefaultFinalMap
DefaultFinalMap
is a stupid implementation of
FinalMap
that just looks for the final
access modifier.
Constructor Summary | |
---|---|
DefaultFinalMap()
Creates a DefaultFinalMap . |
Method Summary | |
---|---|
boolean |
isFinal(HClass hc)
Returns true if the class is never subclassed. |
boolean |
isFinal(HField hf)
Returns true if the field is never modified after
declaration. |
boolean |
isFinal(HMethod hm)
Returns true if the method is never overridden. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultFinalMap()
DefaultFinalMap
. No arguments, because
this implementation is very simple-minded.
Method Detail |
---|
public boolean isFinal(HClass hc)
FinalMap
true
if the class is never subclassed.
isFinal
in class FinalMap
public boolean isFinal(HMethod hm)
FinalMap
true
if the method is never overridden.
isFinal
in class FinalMap
public boolean isFinal(HField hf)
FinalMap
true
if the field is never modified after
declaration.
isFinal
in class FinalMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |