|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectharpoon.Backend.Maps.FinalMap
public abstract class FinalMap
A FinalMap
determines whether a class or method is
final
. A simple implementation (for example,
DefaultFinalMap
) simply looks at the final
tag on the class or method. A more sophisticated implementation
(for example, CHFinalMap
)
takes a particular ClassHierarchy
as an argument
and returns true
if the given class or method is never
subclassed/overridden in context, even if it does not have a
final
access modifier tag.
Constructor Summary | |
---|---|
FinalMap()
|
Method Summary | |
---|---|
abstract boolean |
isFinal(HClass hc)
Returns true if the class is never subclassed. |
abstract boolean |
isFinal(HField hf)
Returns true if the field is never modified after
declaration. |
abstract 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 FinalMap()
Method Detail |
---|
public abstract boolean isFinal(HClass hc)
true
if the class is never subclassed.
public abstract boolean isFinal(HMethod hm)
true
if the method is never overridden.
public abstract boolean isFinal(HField hf)
true
if the field is never modified after
declaration.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |