public interface VariableAttribute
kDontEnumerate
etc. The values from the
high 16 bits correspond to enum InVariableFlags
from
playerdebugger.h, e.g. kIsArgument
etc.Modifier and Type | Field and Description |
---|---|
static int |
DONT_ENUMERATE
Indicates that this member is invisible to an enumeration
of its parent.
|
static int |
HAS_GETTER
Indicates that a variable has a getter.
|
static int |
HAS_SETTER
Indicates that a variable has a setter.
|
static int |
INTERNAL_SCOPE
Indicates that a variable is an internal member of its parent.
|
static int |
IS_ARGUMENT
Indicates that a variable is an argument to a function.
|
static int |
IS_CONST
Indicates that a variable was declared "const".
|
static int |
IS_DYNAMIC
Indicates that a variable is "dynamic" -- that is, whether it
is a dynamic property of a class declared with keyword "dynamic".
|
static int |
IS_LOCAL
Indicates that a variable is a local.
|
static int |
IS_STATIC
Indicates that a variable is a static member of its parent.
|
static int |
NAMESPACE_SCOPE
Indicates that a variable is scoped by a namespace.
|
static int |
PRIVATE_SCOPE
Indicates that a variable is a private member of its parent.
|
static int |
PROTECTED_SCOPE
Indicates that a variable is a protected member of its parent.
|
static int |
PUBLIC_SCOPE
Indicates that a variable is a public member of its parent.
|
static int |
READ_ONLY
Indicates that a variable is read-only.
|
static int |
SCOPE_MASK
A mask which can be used to get back only the scope-related
attributes.
|
static final int DONT_ENUMERATE
static final int READ_ONLY
static final int IS_LOCAL
static final int IS_ARGUMENT
static final int IS_DYNAMIC
static final int HAS_GETTER
static final int HAS_SETTER
static final int IS_STATIC
static final int IS_CONST
static final int PUBLIC_SCOPE
if (myVar.getScope() == VariableAttribute.PUBLIC_SCOPE) ...
static final int PRIVATE_SCOPE
if (myVar.getScope() == VariableAttribute.PRIVATE_SCOPE) ...
static final int PROTECTED_SCOPE
if (myVar.getScope() == VariableAttribute.PROTECTED_SCOPE) ...
static final int INTERNAL_SCOPE
if (myVar.getScope() == VariableAttribute.INTERNAL_SCOPE) ...
static final int NAMESPACE_SCOPE
my_namespace var x;
Note: the scope attributes are not bitfields. To determine the scope
of a variable, use variable.getScope() and compare the result to the
various *_SCOPE values using ==. For example:
if (myVar.getScope() == VariableAttribute.NAMESPACE_SCOPE) ...
static final int SCOPE_MASK
if (myVar.getScope() == VariableAttribute.PRIVATE_SCOPE) ...
Copyright © 2016 The Apache Software Foundation. All rights reserved.