public class MultiOccurrenceVariableRef extends VariableRef
isNestedPropertyname| Constructor and Description |
|---|
MultiOccurrenceVariableRef(Property property,
String name) |
MultiOccurrenceVariableRef(Type<?> type,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
add(String value) |
String |
add(VariableRef value) |
String |
addAll(VariableRef value)
A convenience function for adding all of one multi-occurrence type to another
|
String |
addAllButNoAssign(VariableRef value)
A convenience function which adds all of one multi-occurence type to another variable, but without any assignment
|
String |
collectionType() |
String |
declareIterator() |
static MultiOccurrenceVariableRef |
from(VariableRef r)
up-converts the specified standard VariableRef into a
MultiOccurrenceVariableRef
|
String |
iteratorHasNext() |
String |
newCollection() |
String |
newInstance(String sizeExpr) |
String |
newMap() |
String |
nextElement() |
VariableRef |
nextElementRef() |
String |
notEmpty() |
String |
size()
Generates java code for a reference to the "size" of this VariableRef
|
assertType, assign, assign, assignIfPossible, assignIfPossible, asWrapper, cast, cast, cast, cast, declare, declare, declare, elementRef, elementType, elementTypeName, elementValueType, equals, getConverter, getDefaultValue, getFilter, getGetter, getOwner, getPath, getSetter, getter, hashCode, ifNotNull, ifNotNull, ifNull, ifPathNotNull, ifPathNull, isArray, isAssignable, isCollection, isDeclared, isInstanceOf, isList, isMap, isMapEntry, isNestedProperty, isNull, isNullPathPossible, isNullPossible, isOptional, isPrimitive, isPrimitiveLiteral, isReadable, isSet, isValidPropertyReference, isWrapper, mapKeyType, mapValueType, name, notNull, notNull, owner, pathNotNull, pathNull, primitiveType, primitiveType, property, rawType, setConverter, setFilter, setNullImpossible, setNullPathImpossible, setOwner, setter, toString, type, typeName, validVariableName, wrapperTypeNamepublic static MultiOccurrenceVariableRef from(VariableRef r)
r - public String declareIterator()
public String nextElement()
public VariableRef nextElementRef()
public String iteratorHasNext()
public String notEmpty()
public String add(VariableRef value)
public String addAll(VariableRef value)
value - public String addAllButNoAssign(VariableRef value)
value - public String collectionType()
public String newCollection()
public String newMap()
public String size()
size in class VariableRefCopyright © 2016 Glasnost. All rights reserved.