|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> bcel >> [ classfile overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.puppycrawl.tools.checkstyle.bcel.classfile
Class MethodDefinition

java.lang.Objectcom.puppycrawl.tools.checkstyle.bcel.classfile.FieldOrMethodDefinition
com.puppycrawl.tools.checkstyle.bcel.classfile.MethodDefinition
- public class MethodDefinition
- extends FieldOrMethodDefinition
Contains the definition of a Method and its references.
| Field Summary | |
private java.util.Set |
mReferences
the references to the Method |
| Fields inherited from class com.puppycrawl.tools.checkstyle.bcel.classfile.FieldOrMethodDefinition |
|
| Constructor Summary | |
MethodDefinition(org.apache.bcel.classfile.Method aMethod)
Creates a MethodDefinition for a Method. |
|
| Method Summary | |
void |
addReference(com.puppycrawl.tools.checkstyle.bcel.generic.InvokeReference aRef)
Adds a reference to the Method. |
org.apache.bcel.generic.Type[] |
getArgumentTypes()
Gets the Types of the Method's arguments. |
org.apache.bcel.classfile.Method |
getMethod()
Returns the Method for this definition. |
int |
getReferenceCount()
Determines the number of references to the Method. |
java.util.Set |
getReferences()
Gets the references to the Method. |
boolean |
hasReference(org.apache.bcel.classfile.JavaClass aJavaClass)
Determine whether this method definition has a reference from a class or a superclass. |
boolean |
isAsNarrow(MethodDefinition aMethodDef)
Determines whether the Method of a MethodDefinition is as narrow as the method for this definition. |
boolean |
isCompatible(org.apache.bcel.classfile.Method aMethod)
Determines whether a Method is compatible with the Method of this definition. |
boolean |
isCompatible(MethodDefinition aMethodDef)
Determines whether a MethodDefinition is compatible with the Method of this definition. |
boolean |
isCompatible(java.lang.String aMethodName,
org.apache.bcel.generic.Type[] aArgTypes)
Determines whether a method is compatible with the Method of this definition. |
| Methods inherited from class com.puppycrawl.tools.checkstyle.bcel.classfile.FieldOrMethodDefinition |
getFieldOrMethod, getName, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
mReferences
private java.util.Set mReferences
- the references to the Method
| Constructor Detail |
MethodDefinition
public MethodDefinition(org.apache.bcel.classfile.Method aMethod)
- Creates a
MethodDefinitionfor a Method.
| Method Detail |
getReferences
public java.util.Set getReferences()
- Gets the references to the Method.
getReferenceCount
public int getReferenceCount()
- Determines the number of references to the Method.
getMethod
public org.apache.bcel.classfile.Method getMethod()
- Returns the Method for this definition.
addReference
public void addReference(com.puppycrawl.tools.checkstyle.bcel.generic.InvokeReference aRef)
- Adds a reference to the Method.
getArgumentTypes
public org.apache.bcel.generic.Type[] getArgumentTypes()
- Gets the Types of the Method's arguments.
isCompatible
public boolean isCompatible(org.apache.bcel.classfile.Method aMethod)
- Determines whether a Method is compatible with the
Method of this definition.
isCompatible
public boolean isCompatible(MethodDefinition aMethodDef)
- Determines whether a MethodDefinition is compatible with the
Method of this definition.
isAsNarrow
public boolean isAsNarrow(MethodDefinition aMethodDef)
- Determines whether the Method of a MethodDefinition is as narrow
as the method for this definition.
Precondition: the method for this has the same name and the same
number of arguments as the Method for the given MethodDefinition.
isCompatible
public boolean isCompatible(java.lang.String aMethodName, org.apache.bcel.generic.Type[] aArgTypes)
- Determines whether a method is compatible with the Method of
this definition.
hasReference
public boolean hasReference(org.apache.bcel.classfile.JavaClass aJavaClass)
- Determine whether this method definition has a reference from a class or
a superclass.
|
|||||||||
| Home >> All >> com >> puppycrawl >> tools >> checkstyle >> bcel >> [ classfile overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC