public class AccessCode extends Object
Validation Rules for the bits:
Modifier and Type | Field and Description |
---|---|
static int |
EMPTY |
static int |
EXPLICIT |
static int |
FIELD |
static int |
MIXED |
static int |
PROPERTY |
static int |
UNKNOWN |
Constructor and Description |
---|
AccessCode() |
Modifier and Type | Method and Description |
---|---|
static int |
getMixedCode(int cCode,
int fCode) |
static boolean |
isCompatibleSuper(int subCode,
int superCode)
Affirms if the sub class access type is compatible with super class
access style.
|
static boolean |
isEmpty(ClassMetaData meta) |
static boolean |
isEmpty(int code) |
static boolean |
isExplicit(int code) |
static boolean |
isField(ClassMetaData meta) |
static boolean |
isField(FieldMetaData meta) |
static boolean |
isField(int code) |
static boolean |
isMixed(int code)
Affirms if the given code designates that members can use both
FIELD and PROPERTY based access.
|
static boolean |
isProperty(ClassMetaData meta) |
static boolean |
isProperty(FieldMetaData meta) |
static boolean |
isProperty(int code) |
static boolean |
isUnknown(ClassMetaData meta) |
static boolean |
isUnknown(FieldMetaData meta) |
static boolean |
isUnknown(int code) |
static boolean |
isValidClassCode(int code)
Affirms if the given code is valid.
|
static boolean |
isValidFieldCode(int code) |
static int |
mergeFieldCode(ClassMetaData meta,
FieldMetaData fmd,
int fCode) |
static int |
mergeFieldCode(int cCode,
int fCode)
Merges the field access type with the class access type provided such
merge is valid.
|
static String |
toClassString(int code) |
static int |
toFieldCode(int code) |
static String |
toFieldString(int code) |
public static int UNKNOWN
public static int EMPTY
public static int FIELD
public static int PROPERTY
public static int EXPLICIT
public static int MIXED
public static boolean isValidClassCode(int code)
public static boolean isValidFieldCode(int code)
public static boolean isMixed(int code)
public static boolean isExplicit(int code)
public static boolean isProperty(int code)
public static boolean isField(int code)
public static boolean isUnknown(int code)
public static boolean isEmpty(int code)
public static boolean isField(ClassMetaData meta)
public static boolean isProperty(ClassMetaData meta)
public static boolean isUnknown(ClassMetaData meta)
public static boolean isEmpty(ClassMetaData meta)
public static boolean isField(FieldMetaData meta)
public static boolean isProperty(FieldMetaData meta)
public static boolean isUnknown(FieldMetaData meta)
public static boolean isCompatibleSuper(int subCode, int superCode)
public static int mergeFieldCode(ClassMetaData meta, FieldMetaData fmd, int fCode)
public static int mergeFieldCode(int cCode, int fCode)
IllegalStateException
- if the given codes are not compatiblepublic static int getMixedCode(int cCode, int fCode)
public static int toFieldCode(int code)
public static String toFieldString(int code)
public static String toClassString(int code)
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.