Ghidra 11.4.2
Ghidra internal decompiler documentation.
Loading...
Searching...
No Matches
ghidra::TokenPattern Class Reference
Collaboration diagram for ghidra::TokenPattern:
[legend]

Public Member Functions

 TokenPattern (bool tf)
 
 TokenPattern (Token *tok)
 
 TokenPattern (Token *tok, intb value, int4 bitstart, int4 bitend)
 
 TokenPattern (intb value, int4 startbit, int4 endbit)
 
 TokenPattern (const TokenPattern &tokpat)
 
const TokenPattern & operator= (const TokenPattern &tokpat)
 
void setLeftEllipsis (bool val)
 
void setRightEllipsis (bool val)
 
bool getLeftEllipsis (void) const
 
bool getRightEllipsis (void) const
 
TokenPattern doAnd (const TokenPattern &tokpat) const
 
TokenPattern doOr (const TokenPattern &tokpat) const
 
TokenPattern doCat (const TokenPattern &tokpat) const
 
TokenPattern commonSubPattern (const TokenPattern &tokpat) const
 
Pattern * getPattern (void) const
 
int4 getMinimumLength (void) const
 
bool alwaysTrue (void) const
 
bool alwaysFalse (void) const
 
bool alwaysInstructionTrue (void) const
 

Private Member Functions

int4 resolveTokens (const TokenPattern &tokpat1, const TokenPattern &tokpat2)
 
 TokenPattern (Pattern *pat)
 

Static Private Member Functions

static PatternBlock * buildSingle (int4 startbit, int4 endbit, uintm byteval)
 
static PatternBlock * buildBigBlock (int4 size, int4 bitstart, int4 bitend, intb value)
 
static PatternBlock * buildLittleBlock (int4 size, int4 bitstart, int4 bitend, intb value)
 

Private Attributes

Pattern * pattern
 
vector< Token * > toklist
 
bool leftellipsis
 
bool rightellipsis
 

The documentation for this class was generated from the following files: