public interface

IJavaConstantFactory

com.pnfsoftware.jeb.core.units.code.java.IJavaConstantFactory

Class Overview

Builder for Java AST constants.

Summary

Public Methods
abstract IJavaConstant createBoolean(boolean v)
abstract IJavaConstant createByte(byte v)
abstract IJavaConstant createChar(char v)
abstract IJavaConstant createDouble(double v)
abstract IJavaConstant createFloat(float v)
abstract IJavaConstant createInt(int v)
abstract IJavaConstant createLong(long v)
abstract IJavaConstant createNull()
abstract IJavaConstant createShort(short v)
abstract IJavaConstant createString(String v)
Create an AST String object.

Public Methods

public abstract IJavaConstant createBoolean (boolean v)

public abstract IJavaConstant createByte (byte v)

public abstract IJavaConstant createChar (char v)

public abstract IJavaConstant createDouble (double v)

public abstract IJavaConstant createFloat (float v)

public abstract IJavaConstant createInt (int v)

public abstract IJavaConstant createLong (long v)

public abstract IJavaConstant createNull ()

public abstract IJavaConstant createShort (short v)

public abstract IJavaConstant createString (String v)

Create an AST String object. Note that the created object is not necessarily backed by a lower-level (dex) string item. If the user needs to ensure that an AST String object is backed by a dex item, the existence of a matching dex string must be verified, or a new dex string be created. Refer to addString(String).

Parameters
v string value
Returns
  • an AST String item