|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use VariableRef | |
|---|---|
| ma.glasnost.orika.impl.generator | |
| ma.glasnost.orika.impl.generator.specification | |
| Uses of VariableRef in ma.glasnost.orika.impl.generator |
|---|
| Subclasses of VariableRef in ma.glasnost.orika.impl.generator | |
|---|---|
class |
MapEntryRef
|
class |
MultiOccurrenceVariableRef
VariableRef represents a reference to a given variable or property; it contains various helper methods to properly set it's value and interrogate it's underlying property or type. |
static class |
MultiOccurrenceVariableRef.EntrySetRef
|
| Fields in ma.glasnost.orika.impl.generator declared as VariableRef | |
|---|---|
VariableRef |
Node.elementRef
|
VariableRef |
Node.nullCheckFlag
|
VariableRef |
Node.shouldAddToCollectorFlag
|
| Methods in ma.glasnost.orika.impl.generator that return VariableRef | |
|---|---|
VariableRef |
VariableRef.elementRef(String name)
|
static VariableRef |
SourceCodeContext.entrySetRef(VariableRef s)
Creates a VariableRef representing a Set |
VariableRef |
VariableRef.getOwner()
|
| Methods in ma.glasnost.orika.impl.generator that return types with arguments of type VariableRef | |
|---|---|
List<VariableRef> |
VariableRef.getPath()
|
| Methods in ma.glasnost.orika.impl.generator with parameters of type VariableRef | |
|---|---|
String |
MultiOccurrenceVariableRef.add(VariableRef value)
|
String |
MultiOccurrenceVariableRef.addAll(VariableRef value)
A convenience function for adding all of one multi-occurrence type to another |
String |
VariableRef.assign(VariableRef value)
Returns java code which assigns the value of the provided PropertyRef to this PropertyRef |
String |
VariableRef.assignIfPossible(VariableRef value)
Generates code to perform assignment to this VariableRef, if it is assignable. |
String |
SourceCodeContext.assureInstanceExists(VariableRef propertyRef,
VariableRef source)
Append a statement which assures that the variable reference has an existing instance; if it does not, a new object is generated using MapperFacade.newObject |
String |
SourceCodeContext.callMapper(VariableRef source,
Type<?> destination)
|
String |
SourceCodeContext.callMapper(VariableRef source,
VariableRef destination)
|
String |
VariableRef.cast(VariableRef ref)
|
protected static String |
VariableRef.cast(VariableRef value,
Type<?> type)
Returns Java code which provides a cast of the specified value to the type of this property ref |
String |
SourceCodeContext.compareFields(FieldMap fieldMap,
VariableRef sourceProperty,
VariableRef destinationProperty,
Type<?> destinationType,
StringBuilder logDetails)
Generates source code for an "equality" comparison of two variables, based on the FieldMap passed |
String |
VariableRef.declare(VariableRef ref)
Returns Java code which declares this variable, initialized with the provided value. |
static VariableRef |
SourceCodeContext.entrySetRef(VariableRef s)
Creates a VariableRef representing a Set |
static MultiOccurrenceVariableRef |
MultiOccurrenceVariableRef.from(VariableRef r)
up-converts the specified standard VariableRef into a MultiOccurrenceVariableRef |
String |
Specification.generateEqualityTestCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code for a boolean equality test between the two variable types, where are potentially unrelated. |
String |
Specification.generateMappingCode(FieldMap fieldMap,
VariableRef source,
VariableRef destination,
SourceCodeContext code)
Generates code to map the provided field map |
String |
SourceCodeContext.mapFields(FieldMap fieldMap,
VariableRef sourceProperty,
VariableRef destinationProperty,
Type<?> destinationType,
StringBuilder logDetails)
Generate the code necessary to process the provided FieldMap. |
String |
SourceCodeContext.newObject(VariableRef source,
Type<?> destinationType)
|
String |
SourceCodeContext.newObjectFromMapper(VariableRef source,
Type<?> destinationType)
Generates a code snippet to generate a new instance of the destination type from a mapper |
void |
VariableRef.setOwner(VariableRef owner)
|
String |
SourceCodeContext.usedMapperFacadeNewObjectCall(VariableRef source,
VariableRef destination)
|
String |
SourceCodeContext.usedType(VariableRef r)
Generate usedType array index code for the provided variable |
| Constructors in ma.glasnost.orika.impl.generator with parameters of type VariableRef | |
|---|---|
MultiOccurrenceVariableRef.EntrySetRef(VariableRef sourceMap)
|
|
MultiOccurrenceVariableRef.EntrySetRef(VariableRef sourceMap,
String variableName)
|
|
VariableRef(Property property,
VariableRef anchor)
|
|
| Uses of VariableRef in ma.glasnost.orika.impl.generator.specification |
|---|
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||