public class


extends Object
   ↳ com.pnfsoftware.jeb.core.units.code.asm.type.PrettyTypeFormatter

Class Overview

C-like formatting an INativeType to a string. Allows formatting of nested structures.

Note that array formatting does not respect C type notation: [dimension] is not after the identifier name, but instead, after the type name. The dimensions are reversed. Example:

 C variable:
   int a[6][4];    // an two-dimensional array of integers, first dim: 6, second dim: 4
 would have its type rendered as:
   int[4][6]       // note the dimension ordering


Public Constructors
PrettyTypeFormatter(int levelStructDepth, boolean fullDisplay)
Public Methods
synchronized String format(INativeType t)
int getLevelStructDepth()
boolean isDisplayAliasedType()
boolean isDisplayOffsets()
boolean isDisplayPaddingInfo()
boolean isDisplayTrailingSemicolon()
void setDisplayAliasedType(boolean displayAliasedType)
void setDisplayOffsets(boolean displayOffsets)
void setDisplayPaddingInfo(boolean displayPaddingInfo)
void setDisplayTrailingSemicolon(boolean displayTrailingSemicolon)
void setLevelStructDepth(int levelStructDepth)
Inherited Methods
From class java.lang.Object

Public Constructors

public PrettyTypeFormatter ()

public PrettyTypeFormatter (int levelStructDepth, boolean fullDisplay)

Public Methods

public synchronized String format (INativeType t)

public int getLevelStructDepth ()

public boolean isDisplayAliasedType ()

public boolean isDisplayOffsets ()

public boolean isDisplayPaddingInfo ()

public boolean isDisplayTrailingSemicolon ()

public void setDisplayAliasedType (boolean displayAliasedType)

public void setDisplayOffsets (boolean displayOffsets)

public void setDisplayPaddingInfo (boolean displayPaddingInfo)

public void setDisplayTrailingSemicolon (boolean displayTrailingSemicolon)

public void setLevelStructDepth (int levelStructDepth)