Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.puppycrawl.tools.checkstyle.checks.usage.transmogrify
Class MethodSignature  view MethodSignature download MethodSignature.java

java.lang.Object
  extended bycom.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


Field Summary
private  IClass[] _argTypes
           
 
Constructor Summary
MethodSignature(IClass[] argTypes)
           
MethodSignature(java.util.Vector argTypes)
           
 
Method Summary
 boolean equals(java.lang.Object o)
          compares two objects for equality.
 IClass[] getParameters()
          returns an array of the types of the arguments in the signature
 boolean isCompatibleWith(ISignature signature)
          Whether this method signature is compatible with the signature of the argument.
 boolean isSame(ISignature signature)
          if both signature has the same set of parameters
 java.lang.String toString()
          returns a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_argTypes

private IClass[] _argTypes
Constructor Detail

MethodSignature

public MethodSignature(IClass[] argTypes)

MethodSignature

public MethodSignature(java.util.Vector argTypes)
Method Detail

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