Class AbstractModuleElement
- java.lang.Object
-
- org.eclipse.epsilon.common.module.AbstractModuleElement
-
- All Implemented Interfaces:
ModuleElement
- Direct Known Subclasses:
AbstractExecutableModuleElement
,AbstractModule
,AnnotatableModuleElement
,Annotation
,AnnotationBlock
,Cardinality
,Case
,Comment
,EglMarkerSection
,Fix
,HutnDocument
,Import
,ModelDeclaration
,ModelDeclarationParameter
,Parameter
,Role
public abstract class AbstractModuleElement extends java.lang.Object implements ModuleElement
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<ModuleElement>
children
protected java.util.ArrayList<Comment>
comments
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object>
data
protected IModule
module
protected ModuleElement
parent
protected Region
region
protected java.net.URI
uri
-
Constructor Summary
Constructors Constructor Description AbstractModuleElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
build(AST cst, IModule module)
boolean
equals(java.lang.Object ame)
java.util.List<ModuleElement>
getChildren()
java.util.List<Comment>
getComments()
java.util.Map<java.lang.String,java.lang.Object>
getData()
java.lang.String
getDebugInfo()
java.io.File
getFile()
IModule
getModule()
ModuleElement
getParent()
Region
getRegion()
java.net.URI
getUri()
int
hashCode()
void
setModule(IModule module)
void
setParent(ModuleElement parent)
void
setRegion(Region region)
void
setUri(java.net.URI uri)
java.lang.String
toString()
-
-
-
Field Detail
-
comments
protected java.util.ArrayList<Comment> comments
-
children
protected java.util.ArrayList<ModuleElement> children
-
parent
protected ModuleElement parent
-
uri
protected java.net.URI uri
-
module
protected IModule module
-
region
protected Region region
-
data
protected java.util.LinkedHashMap<java.lang.String,java.lang.Object> data
-
-
Method Detail
-
build
public void build(AST cst, IModule module)
- Specified by:
build
in interfaceModuleElement
-
getComments
public java.util.List<Comment> getComments()
- Specified by:
getComments
in interfaceModuleElement
-
getDebugInfo
public java.lang.String getDebugInfo()
-
getChildren
public java.util.List<ModuleElement> getChildren()
- Specified by:
getChildren
in interfaceModuleElement
-
setUri
public void setUri(java.net.URI uri)
- Specified by:
setUri
in interfaceModuleElement
-
setModule
public void setModule(IModule module)
- Specified by:
setModule
in interfaceModuleElement
-
getRegion
public Region getRegion()
- Specified by:
getRegion
in interfaceModuleElement
-
getModule
public IModule getModule()
- Specified by:
getModule
in interfaceModuleElement
-
getFile
public java.io.File getFile()
- Specified by:
getFile
in interfaceModuleElement
-
getUri
public java.net.URI getUri()
- Specified by:
getUri
in interfaceModuleElement
-
setRegion
public void setRegion(Region region)
- Specified by:
setRegion
in interfaceModuleElement
-
setParent
public void setParent(ModuleElement parent)
- Specified by:
setParent
in interfaceModuleElement
-
getParent
public ModuleElement getParent()
- Specified by:
getParent
in interfaceModuleElement
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getData
public java.util.Map<java.lang.String,java.lang.Object> getData()
- Specified by:
getData
in interfaceModuleElement
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- Since:
- 1.6
-
equals
public boolean equals(java.lang.Object ame)
- Overrides:
equals
in classjava.lang.Object
- Since:
- 1.6
-
-