Package org.eclipse.epsilon.eol.dom
Class CollectionLiteralExpression<T>
java.lang.Object
org.eclipse.epsilon.common.module.AbstractModuleElement
org.eclipse.epsilon.eol.dom.AbstractExecutableModuleElement
org.eclipse.epsilon.eol.dom.Expression
org.eclipse.epsilon.eol.dom.LiteralExpression<Collection<T>>
org.eclipse.epsilon.eol.dom.CollectionLiteralExpression<T>
- All Implemented Interfaces:
ModuleElement,IExecutableModuleElement
-
Field Summary
FieldsFields inherited from class org.eclipse.epsilon.eol.dom.LiteralExpression
value -
Constructor Summary
ConstructorsConstructorDescriptionCollectionLiteralExpression(String collectionType, boolean range, Expression... parameterExpressions) CollectionLiteralExpression(String collectionType, Expression... parameterExpressions) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(IEolVisitor visitor) voidstatic <T> Collection<T>createCollection(String collectionType) execute(IEolContext context) booleanisRange()voidsetCollectionType(String collectionType) voidsetRange(boolean range) Methods inherited from class org.eclipse.epsilon.eol.dom.LiteralExpression
getValue, setValueMethods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
Field Details
-
collectionType
-
range
protected boolean range -
parameterExpressions
-
-
Constructor Details
-
CollectionLiteralExpression
public CollectionLiteralExpression() -
CollectionLiteralExpression
-
CollectionLiteralExpression
public CollectionLiteralExpression(String collectionType, boolean range, Expression... parameterExpressions)
-
-
Method Details
-
build
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classAbstractModuleElement
-
createCollection
- Parameters:
collectionType-- Returns:
- Since:
- 2.1
-
execute
- Specified by:
executein interfaceIExecutableModuleElement- Overrides:
executein classLiteralExpression<Collection<T>>- Throws:
EolRuntimeException
-
getCollectionType
-
setCollectionType
-
accept
- Specified by:
acceptin classLiteralExpression<Collection<T>>
-
getParameterExpressions
-
isRange
public boolean isRange() -
setRange
public void setRange(boolean range)
-