public enum MethodModifier extends Enum<MethodModifier>
Pointcut
to methods with or without particular modifiers.
PUBLIC
and NOT_STATIC
are useful for creating a pointcut that applies to all
public instance methods in a class.
STATIC
is useful for creating a pointcut that applies to
public static void main(String[] args)
methods.
Additional modifiers can easily be supported if additional use cases arise.
Pointcut.methodModifiers()
Enum Constant and Description |
---|
NOT_STATIC |
PUBLIC |
STATIC |
Modifier and Type | Method and Description |
---|---|
static MethodModifier |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MethodModifier[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MethodModifier NOT_STATIC
public static final MethodModifier PUBLIC
public static final MethodModifier STATIC
public static MethodModifier valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static MethodModifier[] values()
for (MethodModifier c : MethodModifier.values()) System.out.println(c);
Copyright © 2011–2017 Glowroot contributors. All rights reserved.