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<java.util.Collection<T>>
-
- org.eclipse.epsilon.eol.dom.CollectionLiteralExpression<T>
-
- All Implemented Interfaces:
ModuleElement
,ICompilableModuleElement
,IExecutableModuleElement
public class CollectionLiteralExpression<T> extends LiteralExpression<java.util.Collection<T>>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
collectionType
protected java.util.List<Expression>
parameterExpressions
protected boolean
range
-
Fields inherited from class org.eclipse.epsilon.eol.dom.LiteralExpression
value
-
Fields inherited from class org.eclipse.epsilon.eol.dom.Expression
resolvedType
-
-
Constructor Summary
Constructors Constructor Description CollectionLiteralExpression()
CollectionLiteralExpression(java.lang.String collectionType, boolean range, Expression... parameterExpressions)
CollectionLiteralExpression(java.lang.String collectionType, Expression... parameterExpressions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
void
compile(IEolCompilationContext context)
static <T> java.util.Collection<T>
createCollection(java.lang.String collectionType)
java.util.Collection<T>
execute(IEolContext context)
-
Methods inherited from class org.eclipse.epsilon.eol.dom.LiteralExpression
getValue, setValue
-
Methods inherited from class org.eclipse.epsilon.eol.dom.Expression
getResolvedType, hasResolvedType
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getDebugInfo, getFile, getModule, getParent, getRegion, getUri, hashCode, setModule, setParent, setRegion, setUri, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.epsilon.common.module.ModuleElement
getChildren, getComments, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
collectionType
protected java.lang.String collectionType
-
range
protected boolean range
-
parameterExpressions
protected java.util.List<Expression> parameterExpressions
-
-
Constructor Detail
-
CollectionLiteralExpression
public CollectionLiteralExpression()
-
CollectionLiteralExpression
public CollectionLiteralExpression(java.lang.String collectionType, Expression... parameterExpressions)
-
CollectionLiteralExpression
public CollectionLiteralExpression(java.lang.String collectionType, boolean range, Expression... parameterExpressions)
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
- Overrides:
build
in classAbstractModuleElement
-
createCollection
public static <T> java.util.Collection<T> createCollection(java.lang.String collectionType)
- Parameters:
collectionType
-- Returns:
- Since:
- 2.1
-
execute
public java.util.Collection<T> execute(IEolContext context) throws EolRuntimeException
- Specified by:
execute
in interfaceIExecutableModuleElement
- Overrides:
execute
in classLiteralExpression<java.util.Collection<T>>
- Throws:
EolRuntimeException
-
compile
public void compile(IEolCompilationContext context)
-
-