public interface

IJavaInstanceField

implements IJavaLeftExpression INonStatement
com.pnfsoftware.jeb.core.units.code.java.IJavaInstanceField

Class Overview

Java AST interface to represent instance fields

This interface should not be confused with IJavaField definition objects.

See Also

Summary

Public Methods
abstract IJavaField getField()
Get the field definition object.
abstract IJavaExpression getInstance()
Get the instance expression, which is the object that contains the field.
abstract void setField(IJavaField field)
Set the field.
abstract void setInstance(IJavaExpression instance)
Set the instance.
[Expand]
Inherited Methods
From interface com.pnfsoftware.jeb.core.units.code.java.IJavaElement

Public Methods

public abstract IJavaField getField ()

Get the field definition object.

Returns
  • the field object

public abstract IJavaExpression getInstance ()

Get the instance expression, which is the object that contains the field.

Returns
  • the instance expression

public abstract void setField (IJavaField field)

Set the field.

Parameters
field mandatory non-static field

public abstract void setInstance (IJavaExpression instance)

Set the instance.

Parameters
instance mandatory instance