public static class JavaSource.Protection
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
static JavaSource.Protection |
valueOf(int pModifiers)
Returns an instance of Protection by using the methods
Modifier.isPublic(int), Modifier.isProtected(int) and
Modifier.isPrivate(int) on the argument pModifiers. |
static JavaSource.Protection |
valueOf(java.lang.String pProtection)
Converts the given string into a protection type.
|
public java.lang.String toString()
toString in class java.lang.Objectpublic static JavaSource.Protection valueOf(java.lang.String pProtection)
public static JavaSource.Protection valueOf(int pModifiers)
Modifier.isPublic(int), Modifier.isProtected(int) and
Modifier.isPrivate(int) on the argument pModifiers.
If neither returns true, assumes JavaSource.DEFAULT_PROTECTION.