Class Constables
java.lang.Object
org.microbean.construct.constant.Constables
A utility class that returns nominal descriptors for constructs.
- Author:
- Laird Nelson
- See Also:
-
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 emptyOptionalif the supplied argument cannot be described.- Parameters:
n- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
ac- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
e- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-
describe
Returns a nominal descriptor for the supplied argument, presuming it to have originated from the suppliedDomain, or an emptyOptionalif the supplied argument cannot be described.- Parameters:
t- the argument; may benulld- theDomainfrom which the argument originated; must not benull- Returns:
- a non-
nullOptional - Throws:
NullPointerException- ifdisnull
-