Class: Jaspion::Kilza::Java
- Inherits:
-
Object
- Object
- Jaspion::Kilza::Java
- Includes:
- Language
- Defined in:
- lib/jaspion/kilza/language/java.rb,
lib/jaspion/kilza/language/java/class.rb,
lib/jaspion/kilza/language/java/property.rb
Overview
Objective-C Language parser
Defined Under Namespace
Constant Summary collapse
- RESERVED_PROPERTY_PREFIX =
'_'
- RESERVED_CLASS_POSFIX =
'Class'
- RESERVED_WORDS =
%w( abstract continue for new switch assert default goto, package synchronized boolean do if private this break double implements, protected throw byte else import public throws case enum instanceof, null return transient catch extends int short try char final interface static, void class finally long strictfp volatile const float native super while )
- TYPES =
{ 'nilclass' => 'Object', 'string' => 'String', 'fixnum' => 'Long', 'float' => 'Double', 'falseclass' => 'Boolean', 'trueclass' => 'Boolean', 'hash' => 'Object' }
Instance Attribute Summary
Attributes included from Language
#base_name, #classes, #equal_keys, #json_string, #reserved_words, #types
Instance Method Summary collapse
- #clazz(name) ⇒ Object
-
#initialize(json_string) ⇒ Java
constructor
A new instance of Java.
- #property(name, type, array, key) ⇒ Object
Constructor Details
#initialize(json_string) ⇒ Java
Returns a new instance of Java.
28 29 30 31 32 |
# File 'lib/jaspion/kilza/language/java.rb', line 28 def initialize(json_string) super(json_string) @equal_keys = %w(id identifier uid) end |