Class ZField

java.lang.Object
dxt.scanpath.v2.bc.ZField

public class ZField extends Object
Encapsulates metadata for a field read directly from a class file.

The metadata includes the field name, whether it is static, and the types of its annotations that are visible at runtime.

Author:
indroneel
  • Constructor Details

    • ZField

      public ZField(ZClassContext ctxt, FieldModel fldMod)
      Creates field metadata from a classfile field model.
      Parameters:
      ctxt - the class context used to resolve annotation types
      fldMod - the class-file model of the field
  • Method Details

    • getName

      public String getName()
      Returns the field name.
      Returns:
      the field name
    • isStatic

      public boolean isStatic()
      Indicates whether the field has the static modifier.
      Returns:
      true if the field is static; otherwise, false
    • getAnnotations

      public List<ZClass> getAnnotations()
      Returns the types of the field's runtime-visible annotations.
      Returns:
      the field's annotation types