Record Class PcodeUseropLibrary.PcodeUseropSymbolMap
java.lang.Object
java.lang.Record
ghidra.pcode.exec.PcodeUseropLibrary.PcodeUseropSymbolMap
- Record Components:
language- the language whose symbols are incorporated into retrievalbyIndex- the symbols by index, excluding those in the language alreadybyName- the symbols by name, excluding those in the language already
- Enclosing interface:
PcodeUseropLibrary<T>
-
Constructor Summary
ConstructorsConstructorDescriptionPcodeUseropSymbolMap(SleighLanguage language, Map<Integer, ghidra.pcodeCPort.slghsymbol.UserOpSymbol> byIndex) Construct a store from the language and symbols by indexPcodeUseropSymbolMap(SleighLanguage language, Map<Integer, ghidra.pcodeCPort.slghsymbol.UserOpSymbol> byIndex, Map<String, ghidra.pcodeCPort.slghsymbol.UserOpSymbol> byName) Creates an instance of aPcodeUseropSymbolMaprecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToParser(PcodeParser parser) Add the library symbols to a given parserbyIndex()Returns the value of thebyIndexrecord component.byName()Returns the value of thebyNamerecord component.empty(SleighLanguage language) final booleanIndicates whether some other object is "equal to" this one.intgetUseropIndex(String name) Get the index of a userop by its name, whether from the language or librarygetUseropName(int index) Get the name of a userop by its index, whether from the language or libraryfinal inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PcodeUseropSymbolMap
public PcodeUseropSymbolMap(SleighLanguage language, Map<Integer, ghidra.pcodeCPort.slghsymbol.UserOpSymbol> byIndex) Construct a store from the language and symbols by indexThis constructor re-indexes by name as well to create the full store
- Parameters:
language- the language whose symbols are incorporated into retrievalbyIndex- the symbols by index, excluding those in the language already
-
PcodeUseropSymbolMap
public PcodeUseropSymbolMap(SleighLanguage language, Map<Integer, ghidra.pcodeCPort.slghsymbol.UserOpSymbol> byIndex, Map<String, ghidra.pcodeCPort.slghsymbol.UserOpSymbol> byName) Creates an instance of aPcodeUseropSymbolMaprecord class.
-
-
Method Details
-
empty
-
getUseropName
Get the name of a userop by its index, whether from the language or library- Parameters:
index- the index- Returns:
- the name, or null
-
getUseropIndex
Get the index of a userop by its name, whether from the language or library- Parameters:
name- the name- Returns:
- the index, or -1
-
addToParser
Add the library symbols to a given parser- Parameters:
parser- the parser whose table to populate
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
language
-
byIndex
-
byName
-