Package eu.bandm.tools.metajava
Class GeneratedLiteral<T>
java.lang.Object
eu.bandm.tools.metajava.GeneratedLiteral<T>
- All Implemented Interfaces:
Formattable
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeneratedLiteral(Class<? extends T> cls, String name) protectedGeneratedLiteral(T value, Format display) protectedGeneratedLiteral(T value, String display) -
Method Summary
Modifier and TypeMethodDescriptionstatic Formatarray(MetaType type, Formattable... values) static Formatarray(MetaType type, List<? extends Formattable> values) final Formatformat()Returns a pretty-printable representation of this object.final TgetValue()static GeneratedLiteral<Boolean> literal(boolean value) static GeneratedLiteral<Character> literal(char value) static GeneratedLiteral<Double> literal(double value) static GeneratedLiteral<Float> literal(float value) static GeneratedLiteral<Integer> literal(int value) static GeneratedLiteral<Long> literal(long value) static GeneratedLiteral<GeneratedAnnotation> static <A extends Formattable>
GeneratedLiteral<A[]> static GeneratedLiteral<String> static <T> GeneratedLiteral<T> static Stringquote(boolean b) static Stringquote(char c) static Stringquote(double d) static Stringquote(float f) static Stringquote(int i) static Stringquote(long l) static Stringprotected static FormatselectFormat(Class<?> cls, String name) protected static <T> TselectValue(Class<T> cls, String name) toString()
-
Constructor Details
-
GeneratedLiteral
-
GeneratedLiteral
-
GeneratedLiteral
-
-
Method Details
-
getValue
-
format
Description copied from interface:FormattableReturns a pretty-printable representation of this object.- Specified by:
formatin interfaceFormattable- Returns:
- a format that represents this object in a pretty-printable way
-
toString
-
selectValue
-
selectFormat
-
literal
-
literal
-
literal
-
literal
-
literal
-
literal
-
literal
-
literalNull
-
literal
-
quote
-
quote
-
quote
-
quote
-
quote
-
quote
-
quote
-
array
-
array
-
literal
-