public interface

IJavaField

implements IJavaDecompilableElement
com.pnfsoftware.jeb.core.units.code.java.IJavaField

Class Overview

Java AST interface to represent a Java field.

Summary

[Expand]
Inherited Constants
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement
Public Methods
abstract IJavaField duplicate()
Duplicate this element.
abstract void generateName(JavaOutputSink out, boolean definition, String alternateName, boolean generated)
abstract void generateName(JavaOutputSink out, boolean definition)
abstract int getAccessFlags()
abstract List<IJavaAnnotation> getAnnotations()
abstract IJavaType getClassType()
abstract IJavaExpression getInitialValue()
Get the static initialization value, if any.
abstract String getName()
Get the original field name.
abstract String getSignature()
Get the field signature.
abstract IJavaType getType()
Get the field type.
abstract boolean isStatic()
Determine whether or not this field is static.
abstract boolean isSynthetic()
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaDecompilableElement
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract IJavaField duplicate ()

Duplicate this element.

Returns
  • a (possibly) duplicated object of the same type

public abstract void generateName (JavaOutputSink out, boolean definition, String alternateName, boolean generated)

Parameters
alternateName alternate name (AST only, dynamically provided by the caller, not persisted) to be used if and only if the DCM cannot provide a better name (eg, the field was renamed at the DEX level)
generated true to render the field name with FIELD_NAME_GENERATED instead of FIELD_NAME

public abstract void generateName (JavaOutputSink out, boolean definition)

public abstract int getAccessFlags ()

public abstract List<IJavaAnnotation> getAnnotations ()

public abstract IJavaType getClassType ()

public abstract IJavaExpression getInitialValue ()

Get the static initialization value, if any. Only for static fields.

Returns
  • the initial value, or null if none

public abstract String getName ()

Get the original field name.

Returns
  • the name

public abstract String getSignature ()

Get the field signature. Convenience routine.

Format: classSignature->fieldName:type

Returns
  • the field signature, or null for the pseudo-fields "[].length" and "Class.class"

public abstract IJavaType getType ()

Get the field type.

Returns
  • the type string

public abstract boolean isStatic ()

Determine whether or not this field is static.

Returns
  • true if static

public abstract boolean isSynthetic ()