Package ghidra.app.cmd.data
Class CreateStructureCmd
- java.lang.Object
- 
- ghidra.app.cmd.data.AbstractCreateStructureCmd
- 
- ghidra.app.cmd.data.CreateStructureCmd
 
 
- 
- All Implemented Interfaces:
- Command
 
 public class CreateStructureCmd extends AbstractCreateStructureCmd Command to create a structure.
- 
- 
Constructor SummaryConstructors Constructor Description CreateStructureCmd(Address address, int length)Constructs a new command for creating a new structure and applying it to the browser.CreateStructureCmd(Structure newStructure, Address address)Creates a new structure by using the provided structure and attaching it to the program passed in theAbstractCreateStructureCmd.applyTo(DomainObject)method.CreateStructureCmd(java.lang.String name, Address address, int length)Constructs a new command for creating a new structure and applying it to the browser.
 - 
Method Summary- 
Methods inherited from class ghidra.app.cmd.data.AbstractCreateStructureCmdapplyTo, getName, getNewDataType, getStatusMsg
 
- 
 
- 
- 
- 
Constructor Detail- 
CreateStructureCmdpublic CreateStructureCmd(Address address, int length) Constructs a new command for creating a new structure and applying it to the browser. This method simply callsCreateStructureCmd(String, Address, int)withStructureFactory.DEFAULT_STRUCTURE_NAMEas the name of the structure.- Parameters:
- address- the address at which to create the new structure.
- length- the number of undefined bytes to consume in the new structure.
 
 - 
CreateStructureCmdpublic CreateStructureCmd(java.lang.String name, Address address, int length)Constructs a new command for creating a new structure and applying it to the browser.- Parameters:
- name- The name of the new structure to create.
- address- the address at which to create the new structure.
- length- the number of undefined bytes to consume in the new structure.
 
 - 
CreateStructureCmdpublic CreateStructureCmd(Structure newStructure, Address address) Creates a new structure by using the provided structure and attaching it to the program passed in theAbstractCreateStructureCmd.applyTo(DomainObject)method.- Parameters:
- newStructure- The new structure to attach to the program provided in the- AbstractCreateStructureCmd.applyTo(DomainObject)method.
- address- the address at which to create the new structure.
 
 
- 
 
-