Class AssemblyStringTerminal
- java.lang.Object
- 
- ghidra.app.plugin.assembler.sleigh.symbol.AssemblySymbol
- 
- ghidra.app.plugin.assembler.sleigh.symbol.AssemblyTerminal
- 
- ghidra.app.plugin.assembler.sleigh.symbol.AssemblyStringTerminal
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Comparable<AssemblySymbol>
 
 public class AssemblyStringTerminal extends AssemblyTerminal A terminal that accepts only a particular string
- 
- 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringstr- 
Fields inherited from class ghidra.app.plugin.assembler.sleigh.symbol.AssemblySymbolname
 
- 
 - 
Constructor SummaryConstructors Constructor Description AssemblyStringTerminal(java.lang.String str)Construct a terminal that accepts only the given string
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<java.lang.String>getSuggestions(java.lang.String got, java.util.Map<java.lang.String,java.lang.Long> labels)Provide a collection of strings that this terminal would have acceptedjava.util.Collection<AssemblyParseToken>match(java.lang.String buffer, int pos, AssemblyGrammar grammar, java.util.Map<java.lang.String,java.lang.Long> labels)Attempt to match a token from the input buffer starting at a given positionbooleantakesOperandIndex()Check if this symbol consumes an operand index of its constructorjava.lang.StringtoString()- 
Methods inherited from class ghidra.app.plugin.assembler.sleigh.symbol.AssemblySymbolcompareTo, equals, getName, hashCode
 
- 
 
- 
- 
- 
Method Detail- 
toStringpublic java.lang.String toString() - Specified by:
- toStringin class- AssemblySymbol
 
 - 
matchpublic java.util.Collection<AssemblyParseToken> match(java.lang.String buffer, int pos, AssemblyGrammar grammar, java.util.Map<java.lang.String,java.lang.Long> labels) Description copied from class:AssemblyTerminalAttempt to match a token from the input buffer starting at a given position- Specified by:
- matchin class- AssemblyTerminal
- Parameters:
- buffer- the input buffer
- pos- the cursor position in the buffer
- grammar- the grammar containing this terminal
- labels- the program labels, if applicable
- Returns:
- the matched token, or null
 
 - 
getSuggestionspublic java.util.Collection<java.lang.String> getSuggestions(java.lang.String got, java.util.Map<java.lang.String,java.lang.Long> labels)Description copied from class:AssemblyTerminalProvide a collection of strings that this terminal would have accepted- Specified by:
- getSuggestionsin class- AssemblyTerminal
- Parameters:
- got- the remaining contents of the input buffer
- labels- the program labels, if applicable
- Returns:
- a, possibly empty, collection of suggestions
 
 - 
takesOperandIndexpublic boolean takesOperandIndex() Description copied from class:AssemblySymbolCheck if this symbol consumes an operand index of its constructor- Overrides:
- takesOperandIndexin class- AssemblySymbol
- Returns:
- true if the symbol represents an operand
 
 
- 
 
-