|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.arch4j.generator.JavaAccessModifier
This class represents a Java access control modifier. The four modifiers are available as static fields available via this class name. There is also a static method available to find the appropriate access modifier via a keyword string, such as public.
Field Summary | |
static JavaAccessModifier |
PACKAGE_ACCESS
The default or package access control modifier. |
static JavaAccessModifier |
PRIVATE_ACCESS
The private access control modifier. |
static JavaAccessModifier |
PROTECTED_ACCESS
The protected access control modifier. |
static JavaAccessModifier |
PUBLIC_ACCESS
The public access control modifier. |
Method Summary | |
boolean |
equals(Object obj)
Returns true if this access modifier is equal to another object. |
int |
hashCode()
Returns a hash code value for this JavaAccessModifier. |
boolean |
isPackageAccess()
Returns true if the receiver represents package access. |
boolean |
isPrivate()
Returns true if the receiver represents private access. |
boolean |
isProtected()
Returns true if the receiver represents protected access. |
boolean |
isPublic()
Returns true if the receiver represents public access. |
static JavaAccessModifier |
modifierFor(String accessModifier)
Returns the appropriate static field for the given access modifier string. |
String |
toString()
Returns a String object representing this JavaAccessModifier. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final JavaAccessModifier PUBLIC_ACCESS
public static final JavaAccessModifier PROTECTED_ACCESS
public static final JavaAccessModifier PACKAGE_ACCESS
public static final JavaAccessModifier PRIVATE_ACCESS
Method Detail |
public static JavaAccessModifier modifierFor(String accessModifier)
null
or invalid modifier is given,
the default or package access control will be returned.
accessModifier
- The access control modifier to get.public boolean isPublic()
public boolean isProtected()
public boolean isPackageAccess()
public boolean isPrivate()
public boolean equals(Object obj)
equals
in class Object
obj
- The object to compare with.
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Arch4J 1.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |