class JavaParser

Defined in:

miniparsers/java.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path : String, tokens : Array(Token)) #

[View source]

Instance Method Detail

def classes : Array(ClassModel) #

[View source]
def classes=(classes : Array(ClassModel)) #

[View source]
def classes_tokens : Array(Array(Token)) #

[View source]
def classes_tokens=(classes_tokens : Array(Array(Token))) #

[View source]
def get_class_name(tokens : Array(Token)) #

[View source]
def get_package_name(tokens : Array(Token)) #

[View source]
def get_root_source_directory(path : String, package_name : String) #

[View source]
def import_statements : Array(String) #

[View source]
def import_statements=(import_statements : Array(String)) #

[View source]
def parse #

[View source]
def parse_annotations(tokens : Array(Token), declare_token_index : Int32) #

[View source]
def parse_classes(tokens : Array(Token)) #

[View source]
def parse_fields(class_tokens : Array(Token), methods : Hash(String, MethodModel), annotations : Hash(String, AnnotationModel)) #

[View source]
def parse_formal_parameters(tokens : Array(Token), param_start_index : Int32) #

[View source]
def parse_import_statements(tokens : Array(Token)) #

[View source]
def parse_methods(class_tokens : Array(Token)) #

[View source]
def path : String #

[View source]
def path=(path : String) #

[View source]
def print_tokens(tokens : Array(Token), id = "default", trace = false) #

[View source]
def tokens : Array(Token) #

[View source]
def tokens=(tokens : Array(Token)) #

[View source]