decompiler  1.0.0
Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
ghidra::PrintJavaCapability Class Reference

Factory and static initializer for the "java-language" back-end to the decompiler. More...

#include <printjava.hh>

Inheritance diagram for ghidra::PrintJavaCapability:
ghidra::PrintLanguageCapability ghidra::CapabilityPoint

Public Member Functions

virtual PrintLanguagebuildLanguage (Architecture *glb)
 Build the main PrintLanguage object corresponding to this capability. More...
 
- Public Member Functions inherited from ghidra::PrintLanguageCapability
const string & getName (void) const
 Get the high-level language name.
 
virtual void initialize (void)
 Complete initialization of an extension point. More...
 
- Public Member Functions inherited from ghidra::CapabilityPoint
virtual ~CapabilityPoint (void)
 Destructor.
 

Private Member Functions

 PrintJavaCapability (void)
 Singleton constructor.
 
 PrintJavaCapability (const PrintJavaCapability &op2)
 Not implemented.
 
PrintJavaCapabilityoperator= (const PrintJavaCapability &op)
 Not implemented.
 

Static Private Attributes

static PrintJavaCapability printJavaCapability
 The singleton instance.
 

Additional Inherited Members

- Static Public Member Functions inherited from ghidra::PrintLanguageCapability
static PrintLanguageCapabilitygetDefault (void)
 Retrieve the default language capability. More...
 
static PrintLanguageCapabilityfindCapability (const string &name)
 Find a language capability by name. More...
 
- Static Public Member Functions inherited from ghidra::CapabilityPoint
static void initializeAll (void)
 Finish initialization for all extension points. More...
 
- Protected Member Functions inherited from ghidra::CapabilityPoint
 CapabilityPoint (void)
 Construct extension capability exactly once. More...
 
- Protected Attributes inherited from ghidra::PrintLanguageCapability
string name
 Unique identifier for language capability.
 
bool isdefault
 Set to true to treat this as the default language.
 

Detailed Description

Factory and static initializer for the "java-language" back-end to the decompiler.

The singleton adds itself to the list of possible back-end languages for the decompiler and it acts as a factory for producing the PrintJava object for emitting java-language tokens.

Member Function Documentation

◆ buildLanguage()

PrintLanguage * ghidra::PrintJavaCapability::buildLanguage ( Architecture glb)
virtual

Build the main PrintLanguage object corresponding to this capability.

An Architecture will call this once. All decompiling from this Architecture will use this same emitter.

Parameters
glbis the Architecture that will own the new emitter
Returns
the instantiated PrintLanguage emittter

Implements ghidra::PrintLanguageCapability.

References ghidra::PrintLanguageCapability::name.


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