Class Constables
java.lang.Object
org.microbean.construct.constant.Constables
-
Method Summary
Modifier and TypeMethodDescriptionstatic final Optional
<? extends ConstantDesc> describe
(AnnotatedConstruct ac, Domain d) static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> describe
(ExecutableElement e, Domain d) static final Optional
<? extends ConstantDesc> describe
(ModuleElement e, Domain d) static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> describe
(PackageElement e, Domain d) static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> describe
(TypeElement e, Domain d) static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> describe
(VariableElement e, Domain d) static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> describe
(DeclaredType t, Domain d) static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> static final Optional
<? extends ConstantDesc> describe
(PrimitiveType t, Domain d) static final Optional
<? extends ConstantDesc> describe
(TypeMirror t, Domain d) static final Optional
<? extends ConstantDesc> describe
(TypeVariable t, Domain d) static final Optional
<? extends ConstantDesc> describe
(WildcardType t, Domain d)
-
Method Details
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
n
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
ac
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
e
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain
, or an emptyOptional
if the supplied argument cannot be described.- Parameters:
t
- the argument; may benull
d
- theDomain
from which the argument originated; must not benull
- Returns:
- a non-
null
Optional
- Throws:
NullPointerException
- ifd
isnull
-