public abstract class ObjectFile.Element extends Object implements ElementImpl
Constructor and Description |
---|
Element(String name) |
Element(String name,
int alignment)
Constructs an element with the given name and index in the element list.
|
Modifier and Type | Method and Description |
---|---|
int |
getAlignment() |
abstract LayoutDecisionMap |
getDecisions(LayoutDecisionMap copyingIn) |
ObjectFile.Element |
getElement() |
String |
getElementName()
This method can not be overridden.
|
abstract ElementImpl |
getImpl() |
int |
getMemSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)
Implement this method to provide the section size in memory (at runtime).
|
String |
getName()
This method can be overridden.
|
ObjectFile |
getOwner() |
abstract boolean |
isLoadable()
Returns whether or not this section will be mapped into memory.
|
boolean |
isReferenceable()
Locations in this section are referenceable by symbol names, section names, or by relocation,
so the section needs a virtual address.
|
void |
setElement(ObjectFile.Element element) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDependencies, getOrDecideContent, getOrDecideOffset, getOrDecideSize, getOrDecideVaddr
public Element(String name)
public Element(String name, int alignment)
name
- alignment
- public void setElement(ObjectFile.Element element)
setElement
in interface ElementImpl
public int getAlignment()
getAlignment
in interface ElementImpl
public final ObjectFile.Element getElement()
getElement
in interface ElementImpl
public abstract ElementImpl getImpl()
public String getName()
public final String getElementName()
public ObjectFile getOwner()
public abstract boolean isLoadable()
isLoadable
in interface ElementImpl
public boolean isReferenceable()
ElementImpl
isReferenceable
in interface ElementImpl
public abstract LayoutDecisionMap getDecisions(LayoutDecisionMap copyingIn)
getDecisions
in interface ElementImpl
public int getMemSize(Map<ObjectFile.Element,LayoutDecisionMap> alreadyDecided)
ElementImpl
getMemSize
in interface ElementImpl