edu.tum.cs.commons.reflect
Class FormalParameterComparator
java.lang.Object
edu.tum.cs.commons.reflect.FormalParameterComparator
- All Implemented Interfaces:
- Comparator<FormalParameter>
public class FormalParameterComparator
- extends Object
- implements Comparator<FormalParameter>
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.
- Version:
- $Rev: 26283 $
- Author:
- Florian Deissenboeck, $Author: juergens $
- Rating:
- GREEN Hash: 06C5FDF68F8F0EF99EE068876259CBC7
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FormalParameterComparator
public FormalParameterComparator()
compare
public int compare(FormalParameter p1,
FormalParameter p2)
throws IllegalArgumentException
- Compae formal parameters by their position within the formal parameter
list of the defining method.
- Specified by:
compare in interface Comparator<FormalParameter>
- Throws:
IllegalArgumentException - if parameters belong to different methods.
TUM CCSM Commons - 2.7