SetField

SetField[obj@field, val]
sets a value of an object field.

DetailsDetails

  • To use SetField, you first need to load J/Link using Needs["JLink`"].
  • SetField[obj@field, val] is an alternative syntax to obj@field=val.
  • For static methods, use SetField[staticfield, val]instead of staticfield=val.
New to Mathematica? Find your learning path »
Have a question? Ask support »