| java.lang.Object jaxx.compiler.JavaField
JavaField | public class JavaField (Code) | | Represents a field in a Java source file being generated for output. JavaFields are created
and added to a
JavaFile , which can then output Java source code.
|
Method Summary | |
public int | getModifiers() Returns a bit mask describing the modifier keywords which should appear as part of this field's
declaration. | public String | getName() Returns the field's name. | public String | getType() Returns the field's type, as it would be represented in Java source code. | public String | toString() Returns the Java source code for this field. |
JavaField | public JavaField(int modifiers, String type, String name)(Code) | | Constructs a new JavaField . The modifiers parameter is a bit mask of the
constants from
java.lang.reflect.Modifier , and the type of the field should be
represented as it would appear in Java source code.
Parameters: modifiers - the modifier keywords that should appear as part of the field's declaration Parameters: type - the type of the field as it would appear in Java source code Parameters: name - the field's name |
JavaField | public JavaField(int modifiers, String type, String name, String initializer)(Code) | | Constructs a new JavaField . The modifiers parameter is a bit mask of the
constants from java.lang.reflect.Modifier , and the type of the field should be
represented as it would appear in Java source code. The initializer is the initial
value of the field as it would appear in Java source code, or null to leave it at the
default value.
Parameters: modifiers - the modifier keywords that should appear as part of the field's declaration Parameters: type - the type of the field as it would appear in Java source code Parameters: name - the field's name Parameters: initializer - the initial value of the field, as it would appear in Java source code |
getModifiers | public int getModifiers()(Code) | | Returns a bit mask describing the modifier keywords which should appear as part of this field's
declaration. See java.lang.reflect.Modifier for more information on decoding this
field.
the modifier bit mask |
getName | public String getName()(Code) | | Returns the field's name.
the field's name |
getType | public String getType()(Code) | | Returns the field's type, as it would be represented in Java source code.
the field's type |
toString | public String toString()(Code) | | Returns the Java source code for this field.
the Java source code for this field |
|
|