|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.tum.cs.commons.reflect.FormalParameterComparator
public class FormalParameterComparator
This comparator orders formal parameters by their position within the formal parameter list of the defining method. This comparator raises an exception if the the compared parameters do not belong to the same method.
Constructor Summary | |
---|---|
FormalParameterComparator()
|
Method Summary | |
---|---|
int |
compare(FormalParameter p1,
FormalParameter p2)
Compae formal parameters by their position within the formal parameter list of the defining method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public FormalParameterComparator()
Method Detail |
---|
public int compare(FormalParameter p1, FormalParameter p2) throws java.lang.IllegalArgumentException
compare
in interface java.util.Comparator<FormalParameter>
java.lang.IllegalArgumentException
- if parameters belong to different methods.
|
TUM CCSM Commons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |