Modifier and Type | Field and Description |
---|---|
static int |
ACC_ABSTRACT
This field represents ACC_ABSTRACT in the access_flags element of a method_info structure.
|
static int |
ACC_BRIDGE
This field represents ACC_BRIDGE in the access_flags element of a method_info structure.
|
static int |
ACC_FINAL
This field represents ACC_FINAL in the access_flags element of a method_info structure.
|
static int |
ACC_NATIVE
This field represents ACC_NATIVE in the access_flags element of a method_info structure.
|
static int |
ACC_PRIVATE
This field represents ACC_PRIVATE in the access_flags element of a method_info structure.
|
static int |
ACC_PROTECTED
This field represents ACC_PROTECTED in the access_flags element of a method_info structure.
|
static int |
ACC_PUBLIC
This field represents ACC_PUBLIC in the access_flags element of a method_info structure.
|
static int |
ACC_STATIC
This field represents ACC_STATIC in the access_flags element of a method_info structure.
|
static int |
ACC_STRICT
This field represents ACC_STRICT in the access_flags element of a method_info structure.
|
static int |
ACC_SYNCHRONIZED
This field represents ACC_SYNCHRONIZED in the access_flags element of a method_info structure.
|
static int |
ACC_SYNTHETIC
This field represents ACC_SYNTHETIC in the access_flags element of a method_info structure.
|
static int |
ACC_VARARGS
This field represents ACC_VARARGS in the access_flags element of a method_info structure.
|
Constructor and Description |
---|
MethodInfo()
Constructs a new
MethodInfo instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(NodeHierarchicalVisitor nodeHierarchicalVisitor)
Accepts a
NodeHierarchicalVisitor . |
boolean |
addAttributeInfo(AttributeInfo attributeInfo)
Adds
attributeInfo to this MethodInfo instance, if absent. |
boolean |
containsAttributeInfo(AttributeInfo attributeInfo)
Returns
true if, and only if, this MethodInfo instance contains attributeInfo , false otherwise. |
MethodInfo |
copy()
Returns a copy of this
MethodInfo instance. |
boolean |
equals(java.lang.Object object)
Compares
object to this MethodInfo instance for equality. |
int |
getAccessFlags()
Returns the access_flags of this
MethodInfo instance. |
AttributeInfo |
getAttributeInfo(AttributeInfo attributeInfo)
|
AttributeInfo |
getAttributeInfo(int index)
Returns an
AttributeInfo given its index. |
int |
getAttributeInfoCount()
Returns the number of
AttributeInfo s currently added. |
java.util.List<AttributeInfo> |
getAttributeInfos()
Returns a
List with all currently added AttributeInfo s. |
int |
getDescriptorIndex()
Returns the descriptor_index of this
MethodInfo instance. |
int |
getNameIndex()
Returns the name_index of this
MethodInfo instance. |
int |
hashCode()
Returns a hash code for this
MethodInfo instance. |
boolean |
isAbstract()
Returns
true if, and only if, ACC_ABSTRACT is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isBridge()
Returns
true if, and only if, ACC_BRIDGE is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isClassCompatible()
Returns
true if, and only if, this MethodInfo instance may be used in a class, false otherwise. |
boolean |
isFinal()
Returns
true if, and only if, ACC_FINAL is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isInterfaceCompatible()
Returns
true if, and only if, this MethodInfo instance may be used in an interface, false otherwise. |
boolean |
isNative()
Returns
true if, and only if, ACC_NATIVE is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isPrivate()
Returns
true if, and only if, ACC_PRIVATE is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isProtected()
Returns
true if, and only if, ACC_PROTECTED is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isPublic()
Returns
true if, and only if, ACC_PUBLIC is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isStatic()
Returns
true if, and only if, ACC_STATIC is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isStrict()
Returns
true if, and only if, ACC_STRICT is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isSynchronized()
Returns
true if, and only if, ACC_SYNCHRONIZED is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isSynthetic()
Returns
true if, and only if, ACC_SYNTHETIC is set in the access_flags item of this MethodInfo instance, false otherwise. |
boolean |
isVarargs()
Returns
true if, and only if, ACC_VARARGS is set in the access_flags item of this MethodInfo instance, false otherwise. |
static NodeFilter |
newAbstractNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isAbstract() method that returns true . |
static NodeFilter |
newBridgeNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isBridge() method that returns true . |
static NodeFilter |
newClassCompatibleNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isClassCompatible() method that returns true . |
static NodeFilter |
newFinalNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isFinal() method that returns true . |
static MethodInfo |
newInstance()
Returns a new
MethodInfo instance. |
static NodeFilter |
newInterfaceCompatibleNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isInterfaceCompatible() method that returns true . |
static NodeFilter |
newNativeNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isNative() method that returns true . |
static NodeFilter |
newNonStaticNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isStatic() method that returns false . |
static NodeFilter |
newPrivateNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isPrivate() method that returns true . |
static NodeFilter |
newProtectedNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isProtected() method that returns true . |
static NodeFilter |
newPublicNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isPublic() method that returns true . |
static NodeFilter |
newStaticNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isStatic() method that returns true . |
static NodeFilter |
newStrictNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isStrict() method that returns true . |
static NodeFilter |
newSynchronizedNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isSynchronized() method that returns true . |
static NodeFilter |
newSyntheticNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isSynthetic() method that returns true . |
static NodeFilter |
newVarargsNodeFilter()
Returns a
NodeFilter that accepts Node s that are instances of MethodInfo and have an isVarargs() method that returns true . |
boolean |
removeAttributeInfo(AttributeInfo attributeInfo)
Removes
attributeInfo from this MethodInfo instance, if present. |
void |
setAbstract(boolean isAbstract)
Adds or removes the access flag ACC_ABSTRACT.
|
void |
setBridge(boolean isBridge)
Adds or removes the access flag ACC_BRIDGE.
|
void |
setDescriptorIndex(int descriptorIndex)
Sets a new descriptor_index for this
MethodInfo instance. |
void |
setFinal(boolean isFinal)
Adds or removes the access flag ACC_FINAL.
|
void |
setNameIndex(int nameIndex)
Sets a new name_index for this
MethodInfo instance. |
void |
setNative(boolean isNative)
Adds or removes the access flag ACC_NATIVE.
|
void |
setPrivate(boolean isPrivate)
Adds or removes the access flag ACC_PRIVATE.
|
void |
setProtected(boolean isProtected)
Adds or removes the access flag ACC_PROTECTED.
|
void |
setPublic(boolean isPublic)
Adds or removes the access flag ACC_PUBLIC.
|
void |
setStatic(boolean isStatic)
Adds or removes the access flag ACC_STATIC.
|
void |
setStrict(boolean isStrict)
Adds or removes the access flag ACC_STRICT.
|
void |
setSynchronized(boolean isSynchronized)
Adds or removes the access flag ACC_SYNCHRONIZED.
|
void |
setSynthetic(boolean isSynthetic)
Adds or removes the access flag ACC_SYNTHETIC.
|
void |
setVarargs(boolean isVarargs)
Adds or removes the access flag ACC_VARARGS.
|
java.lang.String |
toString()
Returns a
String representation of this MethodInfo instance. |
Document |
write()
Writes this
MethodInfo to a Document . |
java.io.DataOutput |
write(java.io.DataOutput dataOutput)
Writes this
MethodInfo to dataOutput . |
Document |
write(Document document)
Writes this
MethodInfo to document . |
public static final int ACC_ABSTRACT
public static final int ACC_BRIDGE
public static final int ACC_FINAL
public static final int ACC_NATIVE
public static final int ACC_PRIVATE
public static final int ACC_PROTECTED
public static final int ACC_PUBLIC
public static final int ACC_STATIC
public static final int ACC_STRICT
public static final int ACC_SYNCHRONIZED
public static final int ACC_SYNTHETIC
public static final int ACC_VARARGS
public AttributeInfo getAttributeInfo(AttributeInfo attributeInfo)
AttributeInfo
instance of this MethodInfo
instance that is equal to attributeInfo
.
If attributeInfo
is null
, a NullPointerException
will be thrown.
If this MethodInfo
instance does not contain an AttributeInfo
instance that is equal to attributeInfo
, an IllegalArgumentException
will be thrown.
attributeInfo
- the AttributeInfo
instance to test for equality againstAttributeInfo
instance of this MethodInfo
instance that is equal to attributeInfo
java.lang.IllegalArgumentException
- thrown if, and only if, this MethodInfo
instance does not contain an AttributeInfo
instance that is equal to attributeInfo
java.lang.NullPointerException
- thrown if, and only if, attributeInfo
is null
public AttributeInfo getAttributeInfo(int index)
AttributeInfo
given its index.
If index
is less than 0
, or greater than or equal to getAttributeInfoCount()
, an IndexOutOfBoundsException
will be thrown.
index
- the index of the AttributeInfo
AttributeInfo
given its indexjava.lang.IndexOutOfBoundsException
- thrown if, and only if, index
is less than 0
, or greater than or equal to getAttributeInfoCount()
public java.io.DataOutput write(java.io.DataOutput dataOutput)
MethodInfo
to dataOutput
.
Returns dataOutput
.
If dataOutput
is null
, a NullPointerException
will be thrown.
If an IOException
is caught, an UncheckedIOException
will be thrown.
This method does not close dataOutput
.
dataOutput
- the DataOutput
to write todataOutput
java.lang.NullPointerException
- thrown if, and only if, dataOutput
is null
java.io.UncheckedIOException
- thrown if, and only if, an IOException
is caughtpublic Document write()
MethodInfo
to a Document
.
Returns the Document
.
Calling this method is equivalent to the following:
methodInfo.write(new Document());
Document
public Document write(Document document)
MethodInfo
to document
.
Returns document
.
If document
is null
, a NullPointerException
will be thrown.
document
- the Document
to write todocument
java.lang.NullPointerException
- thrown if, and only if, document
is null
public java.util.List<AttributeInfo> getAttributeInfos()
List
with all currently added AttributeInfo
s.
Modifying the returned List
will not affect this MethodInfo
instance.
List
with all currently added AttributeInfo
spublic MethodInfo copy()
MethodInfo
instance.MethodInfo
instancepublic java.lang.String toString()
String
representation of this MethodInfo
instance.toString
in class java.lang.Object
String
representation of this MethodInfo
instancepublic boolean accept(NodeHierarchicalVisitor nodeHierarchicalVisitor)
NodeHierarchicalVisitor
.
Returns the result of nodeHierarchicalVisitor.visitLeave(this)
.
If nodeHierarchicalVisitor
is null
, a NullPointerException
will be thrown.
If a RuntimeException
is thrown by the current NodeHierarchicalVisitor
, a NodeTraversalException
will be thrown with the RuntimeException
wrapped.
This implementation will:
NullPointerException
if nodeHierarchicalVisitor
is null
.NodeTraversalException
if nodeHierarchicalVisitor
throws a RuntimeException
.Node
s, if it has any.accept
in interface Node
nodeHierarchicalVisitor
- the NodeHierarchicalVisitor
to acceptnodeHierarchicalVisitor.visitLeave(this)
NodeTraversalException
- thrown if, and only if, a RuntimeException
is thrown by the current NodeHierarchicalVisitor
java.lang.NullPointerException
- thrown if, and only if, nodeHierarchicalVisitor
is null
public boolean addAttributeInfo(AttributeInfo attributeInfo)
attributeInfo
to this MethodInfo
instance, if absent.
Returns true
if, and only if, attributeInfo
was added, false
otherwise.
If attributeInfo
is null
, a NullPointerException
will be thrown.
attributeInfo
- the AttributeInfo
to addtrue
if, and only if, attributeInfo
was added, false
otherwisejava.lang.NullPointerException
- thrown if, and only if, attributeInfo
is null
public boolean containsAttributeInfo(AttributeInfo attributeInfo)
true
if, and only if, this MethodInfo
instance contains attributeInfo
, false
otherwise.
If attributeInfo
is null
, a NullPointerException
will be thrown.
attributeInfo
- the AttributeInfo
to checktrue
if, and only if, this MethodInfo
instance contains attributeInfo
, false
otherwisejava.lang.NullPointerException
- thrown if, and only if, attributeInfo
is null
public boolean equals(java.lang.Object object)
object
to this MethodInfo
instance for equality.
Returns true
if, and only if, object
is an instance of MethodInfo
, and their respective values are equal, false
otherwise.
equals
in class java.lang.Object
object
- the Object
to compare to this MethodInfo
instance for equalitytrue
if, and only if, object
is an instance of MethodInfo
, and their respective values are equal, false
otherwisepublic boolean isAbstract()
true
if, and only if, ACC_ABSTRACT is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_ABSTRACT is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isBridge()
true
if, and only if, ACC_BRIDGE is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_BRIDGE is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isClassCompatible()
true
if, and only if, this MethodInfo
instance may be used in a class, false
otherwise.
This method should always return true
. This is because, any and all of the access flag mutator methods will take care of their own constraints, such that an instance of this class will always be in a valid
state. A class may have any access flag, but not all combinations thereof.
true
if, and only if, this MethodInfo
instance may be used in a class, false
otherwisepublic boolean isFinal()
true
if, and only if, ACC_FINAL is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_FINAL is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isInterfaceCompatible()
true
if, and only if, this MethodInfo
instance may be used in an interface, false
otherwise.
In order for this method to return true
, both of the methods isAbstract()
and isPublic()
must return true
. Any of the methods isBridge()
, isSynthetic()
and
isVarargs()
may return true
, but this is not a requirement. All the other methods, namely isFinal()
, isNative()
, isPrivate()
, isProtected()
, isStatic()
,
isStrict()
and isSynchronized()
, must return false
.
true
if, and only if, this MethodInfo
instance may be used in an interface, false
otherwisepublic boolean isNative()
true
if, and only if, ACC_NATIVE is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_NATIVE is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isPrivate()
true
if, and only if, ACC_PRIVATE is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_PRIVATE is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isProtected()
true
if, and only if, ACC_PROTECTED is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_PROTECTED is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isPublic()
true
if, and only if, ACC_PUBLIC is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_PUBLIC is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isStatic()
true
if, and only if, ACC_STATIC is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_STATIC is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isStrict()
true
if, and only if, ACC_STRICT is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_STRICT is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isSynchronized()
true
if, and only if, ACC_SYNCHRONIZED is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_SYNCHRONIZED is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isSynthetic()
true
if, and only if, ACC_SYNTHETIC is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_SYNTHETIC is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean isVarargs()
true
if, and only if, ACC_VARARGS is set in the access_flags item of this MethodInfo
instance, false
otherwise.true
if, and only if, ACC_VARARGS is set in the access_flags item of this MethodInfo
instance, false
otherwisepublic boolean removeAttributeInfo(AttributeInfo attributeInfo)
attributeInfo
from this MethodInfo
instance, if present.
Returns true
if, and only if, attributeInfo
was removed, false
otherwise.
If attributeInfo
is null
, a NullPointerException
will be thrown.
attributeInfo
- the AttributeInfo
to removetrue
if, and only if, attributeInfo
was removed, false
otherwisejava.lang.NullPointerException
- thrown if, and only if, attributeInfo
is null
public int getAccessFlags()
MethodInfo
instance.MethodInfo
instancepublic int getAttributeInfoCount()
AttributeInfo
s currently added.AttributeInfo
s currently addedpublic int getDescriptorIndex()
MethodInfo
instance.MethodInfo
instancepublic int getNameIndex()
MethodInfo
instance.MethodInfo
instancepublic int hashCode()
MethodInfo
instance.hashCode
in class java.lang.Object
MethodInfo
instancepublic void setAbstract(boolean isAbstract)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isAbstract
- true
to add the access flag ACC_ABSTRACTpublic void setBridge(boolean isBridge)
isBridge
- true
to add the access flag ACC_BRIDGEpublic void setDescriptorIndex(int descriptorIndex)
MethodInfo
instance.
If descriptorIndex
is less than or equal to 0
, an IllegalArgumentException
will be thrown.
descriptorIndex
- the new descriptor_index for this MethodInfo
instancejava.lang.IllegalArgumentException
- thrown if, and only if, descriptorIndex
is less than or equal to 0
public void setFinal(boolean isFinal)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isFinal
- true
to add the access flag ACC_FINALpublic void setNameIndex(int nameIndex)
MethodInfo
instance.
If nameIndex
is less than or equal to 0
, an IllegalArgumentException
will be thrown.
nameIndex
- the new name_index for this MethodInfo
instancejava.lang.IllegalArgumentException
- thrown if, and only if, nameIndex
is less than or equal to 0
public void setNative(boolean isNative)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isNative
- true
to add the access flag ACC_NATIVEpublic void setPrivate(boolean isPrivate)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isPrivate
- true
to add the access flag ACC_PRIVATEpublic void setProtected(boolean isProtected)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isProtected
- true
to add the access flag ACC_PROTECTEDpublic void setPublic(boolean isPublic)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isPublic
- true
to add the access flag ACC_PUBLICpublic void setStatic(boolean isStatic)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isStatic
- true
to add the access flag ACC_STATICpublic void setStrict(boolean isStrict)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isStrict
- true
to add the access flag ACC_STRICTpublic void setSynchronized(boolean isSynchronized)
This method turns off the following access flags, if given a parameter argument that is set to true
:
isSynchronized
- true
to add the access flag ACC_SYNCHRONIZEDpublic void setSynthetic(boolean isSynthetic)
isSynthetic
- true
to add the access flag ACC_SYNTHETICpublic void setVarargs(boolean isVarargs)
isVarargs
- true
to add the access flag ACC_VARARGSpublic static MethodInfo newInstance()
MethodInfo
instance.MethodInfo
instancepublic static NodeFilter newAbstractNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isAbstract()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isAbstract()
method that returns true
public static NodeFilter newBridgeNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isBridge()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isBridge()
method that returns true
public static NodeFilter newClassCompatibleNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isClassCompatible()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isClassCompatible()
method that returns true
public static NodeFilter newFinalNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isFinal()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isFinal()
method that returns true
public static NodeFilter newInterfaceCompatibleNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isInterfaceCompatible()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isInterfaceCompatible()
method that returns true
public static NodeFilter newNativeNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isNative()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isNative()
method that returns true
public static NodeFilter newNonStaticNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isStatic()
method that returns false
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isStatic()
method that returns false
public static NodeFilter newPrivateNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isPrivate()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isPrivate()
method that returns true
public static NodeFilter newProtectedNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isProtected()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isProtected()
method that returns true
public static NodeFilter newPublicNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isPublic()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isPublic()
method that returns true
public static NodeFilter newStaticNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isStatic()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isStatic()
method that returns true
public static NodeFilter newStrictNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isStrict()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isStrict()
method that returns true
public static NodeFilter newSynchronizedNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isSynchronized()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isSynchronized()
method that returns true
public static NodeFilter newSyntheticNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isSynthetic()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isSynthetic()
method that returns true
public static NodeFilter newVarargsNodeFilter()
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isVarargs()
method that returns true
.
The NodeFilter
returned by this method will throw a NullPointerException
if, and only if, the Node
to accept or reject is null
. It is also stateless and therefore considered thread-safe.
NodeFilter
that accepts Node
s that are instances of MethodInfo
and have an isVarargs()
method that returns true