public class CodeSectionIdentifier extends Object
getIdOf(CodeSection) are only valid for the same
Identifier instance.
This class is thread safe.
| Constructor and Description |
|---|
CodeSectionIdentifier() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIdOf(CodeSection codeSection)
Gets the identifier that repersents the provided
codeSection. |
CodeSection |
getSectionFor(int identifier)
Gets the code section that is identified by the provided
identifier. |
public int getIdOf(CodeSection codeSection)
codeSection.codeSection - The code section to get the id of.codeSection.public CodeSection getSectionFor(int identifier)
identifier.identifier - An identifier obtained through this instance.identifier by this instance.
null if there is no such section.