Class ClassField

java.lang.Object
org.jfuncmachine.compiler.model.SourceElement
org.jfuncmachine.compiler.model.ClassField

public class ClassField extends SourceElement
Defines a class field
  • Field Details

    • name

      public final String name
      The name of the field
    • type

      public final Type type
      The type of the field
    • access

      public final int access
      The access flags of the field
    • defaultValue

      public final Object defaultValue
      The default value of the field. This value may be null, but if not, it must be an Object, Integer, Long, Float, or Double. If the field is Boolean, Byte, Char, or Short, use an Integer to initialize it.
  • Constructor Details

    • ClassField

      public ClassField(String name, Type type, int access, Object defaultValue)
      Create a new ClassField
      Parameters:
      name - The name of the field
      type - The type of the field
      access - The access flags for the field
      defaultValue - The default value for the field (may be null)
    • ClassField

      public ClassField(String name, Type type, int access, Object defaultValue, String filename, int lineNumber)
      Create a new ClassField
      Parameters:
      name - The name of the field
      type - The type of the field
      access - The access flags for the field
      defaultValue - The default value for the field (may be null)
      filename - The name of the file where this field is defined
      lineNumber - The line number in the source file where this field is defined