Package org.jfuncmachine.compiler.model
Class ClassField
java.lang.Object
org.jfuncmachine.compiler.model.SourceElement
org.jfuncmachine.compiler.model.ClassField
Defines a class field
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intThe access flags of the fieldfinal ObjectThe default value of the field.final StringThe name of the fieldfinal TypeThe type of the fieldFields inherited from class org.jfuncmachine.compiler.model.SourceElement
filename, lineNumber -
Constructor Summary
ConstructorsConstructorDescriptionClassField(String name, Type type, int access, Object defaultValue) Create a new ClassFieldClassField(String name, Type type, int access, Object defaultValue, String filename, int lineNumber) Create a new ClassField -
Method Summary
Methods inherited from class org.jfuncmachine.compiler.model.SourceElement
generateException
-
Field Details
-
name
The name of the field -
type
The type of the field -
access
public final int accessThe access flags of the field -
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
Create a new ClassField- Parameters:
name- The name of the fieldtype- The type of the fieldaccess- The access flags for the fielddefaultValue- 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 fieldtype- The type of the fieldaccess- The access flags for the fielddefaultValue- The default value for the field (may be null)filename- The name of the file where this field is definedlineNumber- The line number in the source file where this field is defined
-