java.lang.Object
com.puppycrawl.tools.checkstyle.checks.usage.transmogrify.MethodSignature
- All Implemented Interfaces:
- ISignature
- public class MethodSignature
- extends java.lang.Object
- implements ISignature
MethodSignature is used to resolve various methods
in the same scope of the same name based on formal parameter lists
_argTypes
private IClass[] _argTypes
MethodSignature
public MethodSignature(IClass[] argTypes)
MethodSignature
public MethodSignature(java.util.Vector argTypes)
getParameters
public IClass[] getParameters()
- returns an array of the types of the arguments in the signature
- Specified by:
getParameters in interface ISignature
isCompatibleWith
public boolean isCompatibleWith(ISignature signature)
- Whether this method signature is compatible with the signature of the
argument. That is to say, each type for this signature are subclasses,
subinterfaces, or implement the interface for each corresponding type
in the argument signature.
- Specified by:
isCompatibleWith in interface ISignature
isSame
public boolean isSame(ISignature signature)
- Description copied from interface:
ISignature
- if both signature has the same set of parameters
- Specified by:
isSame in interface ISignature
equals
public boolean equals(java.lang.Object o)
- compares two objects for equality. If the compared object is a
MethodSignature and the argTypes match, they are the
same
toString
public java.lang.String toString()
- returns a String representation of this object. Includes information
about the types of the arguments in the signature