Class: Java::JavaField
- Inherits:
-
Object
- Object
- Java::JavaField
- Defined in:
- lib/javaobs.rb
Overview
An representation of a Java instance variable used to serialize data to and from a stream.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(name, type) ⇒ JavaField
constructor
Create a java instance variable with a name and data type.
- #inspect ⇒ Object
Constructor Details
#initialize(name, type) ⇒ JavaField
Create a java instance variable with a name and data type.
62 63 64 65 66 |
# File 'lib/javaobs.rb', line 62 def initialize(name, type) @name = name @type = type @subtype = nil end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
58 59 60 |
# File 'lib/javaobs.rb', line 58 def name @name end |
#subtype ⇒ Object
Returns the value of attribute subtype.
59 60 61 |
# File 'lib/javaobs.rb', line 59 def subtype @subtype end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
58 59 60 |
# File 'lib/javaobs.rb', line 58 def type @type end |
Instance Method Details
#inspect ⇒ Object
68 69 70 |
# File 'lib/javaobs.rb', line 68 def inspect "<JavaField: #{@name}:#{@type.chr}:#{@subtype}>" end |