org.netbeans.lib.profiler.heap
Interface Field


public interface Field

represents field (static or instance) of the class.

Author:
Tomas Hurka

Method Summary
 JavaClass getDeclaringClass()
          returns declaring class for this field.
 String getName()
          returns name of the field.
 Type getType()
          returns the type of field (object, int, boolean, etc.).
 boolean isStatic()
          distinguish between static and instance field.
 

Method Detail

getDeclaringClass

JavaClass getDeclaringClass()
returns declaring class for this field.
speed: fast

Returns:
JavaClass where this field is declared

getName

String getName()
returns name of the field.
speed: fast

Returns:
name of the field

isStatic

boolean isStatic()
distinguish between static and instance field.
speed: fast

Returns:
returns true if the field is defined as static, false otherwise

getType

Type getType()
returns the type of field (object, int, boolean, etc.). Note that all java objects have type "object", there is no difference between java.lang.String and java.util.List.
Speed: fast

Returns:
type of field


Copyright © 2018. All Rights Reserved.