Package org.eclipse.epsilon.eol.dom
Class MapLiteralExpression<K,V>
- 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.Map<K,V>>
-
- org.eclipse.epsilon.eol.dom.MapLiteralExpression<K,V>
-
- All Implemented Interfaces:
ModuleElement,ICompilableModuleElement,IExecutableModuleElement
public class MapLiteralExpression<K,V> extends LiteralExpression<java.util.Map<K,V>>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<java.util.Map.Entry<Expression,Expression>>keyValueExpressionPairsprotected java.lang.StringmapName-
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 MapLiteralExpression()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(IEolVisitor visitor)voidbuild(AST cst, IModule module)voidcompile(IEolCompilationContext context)static <K,V>
java.util.Map<K,V>createMap(java.lang.String mapName)java.util.Map<K,V>execute(IEolContext context)java.util.List<java.util.Map.Entry<Expression,Expression>>getKeyValueExpressionPairs()java.lang.StringgetMapName()booleanisTuple()voidsetMapName(java.lang.String mapName)-
Methods inherited from class org.eclipse.epsilon.eol.dom.LiteralExpression
getValue, setValue
-
Methods inherited from class org.eclipse.epsilon.eol.dom.Expression
getResolvedType, hasResolvedType, setResolvedType
-
Methods inherited from class org.eclipse.epsilon.common.module.AbstractModuleElement
equals, getChildren, getComments, getData, 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, getData, getFile, getModule, getParent, getRegion, getUri, setModule, setParent, setRegion, setUri
-
-
-
-
Field Detail
-
keyValueExpressionPairs
protected java.util.List<java.util.Map.Entry<Expression,Expression>> keyValueExpressionPairs
-
mapName
protected java.lang.String mapName
-
-
Method Detail
-
createMap
public static <K,V> java.util.Map<K,V> createMap(java.lang.String mapName)
- Parameters:
mapName-- Returns:
- Since:
- 2.1
-
build
public void build(AST cst, IModule module)
- Specified by:
buildin interfaceModuleElement- Overrides:
buildin classAbstractModuleElement
-
execute
public java.util.Map<K,V> execute(IEolContext context) throws EolRuntimeException
- Specified by:
executein interfaceIExecutableModuleElement- Overrides:
executein classLiteralExpression<java.util.Map<K,V>>- Throws:
EolRuntimeException
-
isTuple
public boolean isTuple()
- Returns:
- Since:
- 2.2
-
compile
public void compile(IEolCompilationContext context)
-
getMapName
public java.lang.String getMapName()
-
setMapName
public void setMapName(java.lang.String mapName)
-
getKeyValueExpressionPairs
public java.util.List<java.util.Map.Entry<Expression,Expression>> getKeyValueExpressionPairs()
-
accept
public void accept(IEolVisitor visitor)
- Specified by:
acceptin classLiteralExpression<java.util.Map<K,V>>
-
-