Class ValueTypeComposer
- java.lang.Object
-
- org.immutables.value.processor.meta.ValueTypeComposer
-
public final class ValueTypeComposer extends java.lang.ObjectIt may grow later in some better abstraction, but as it stands now, currently it is just a glue between new "protoclass" model and old discovery routines.
-
-
Field Summary
Fields Modifier and Type Field Description private static com.google.common.base.CharMatcherATTRIBUTE_NAME_CHARS
-
Constructor Summary
Constructors Constructor Description ValueTypeComposer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static booleancheckAbstractValueType(javax.lang.model.element.Element element, java.util.Collection<java.lang.String> violations)private voidcheckAttributeNamesForDuplicates(ValueType type, Proto.Protoclass protoclass)private voidcheckAttributeNamesIllegalCharacters(ValueType type)private voidcheckConstructability(ValueType type)private voidcheckForMutableFields(Proto.Protoclass protoclass, javax.lang.model.element.TypeElement element)private voidcheckForTypeHierarchy(Proto.Protoclass protoclass, ValueType type)private voidcheckStyleConflicts(ValueType type, Proto.Protoclass protoclass)(package private) voidcompose(ValueType type, Proto.Protoclass protoclass)private static voidscanAndReportInvalidInheritance(Proto.Protoclass protoclass, javax.lang.model.element.Element element, java.lang.Iterable<javax.lang.model.element.TypeElement> supertypes)
-
-
-
Method Detail
-
compose
void compose(ValueType type, Proto.Protoclass protoclass)
-
checkAttributeNamesIllegalCharacters
private void checkAttributeNamesIllegalCharacters(ValueType type)
-
checkConstructability
private void checkConstructability(ValueType type)
-
checkStyleConflicts
private void checkStyleConflicts(ValueType type, Proto.Protoclass protoclass)
-
checkForTypeHierarchy
private void checkForTypeHierarchy(Proto.Protoclass protoclass, ValueType type)
-
scanAndReportInvalidInheritance
private static void scanAndReportInvalidInheritance(Proto.Protoclass protoclass, javax.lang.model.element.Element element, java.lang.Iterable<javax.lang.model.element.TypeElement> supertypes)
-
checkForMutableFields
private void checkForMutableFields(Proto.Protoclass protoclass, javax.lang.model.element.TypeElement element)
-
checkAttributeNamesForDuplicates
private void checkAttributeNamesForDuplicates(ValueType type, Proto.Protoclass protoclass)
-
checkAbstractValueType
static boolean checkAbstractValueType(javax.lang.model.element.Element element, java.util.Collection<java.lang.String> violations)
-
-