CSC/ECE 517 Summer 2008/wiki1 3 jb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
==Reflection in Java==
==Reflection in Java==


{| style="border-spacing:8px;margin:0px 0px;" |width="100%" cellpadding="12" style="border: 1px solid #999; background-color: #EEE; vertical-align:top;padding:1em"| '''
{{ Box ||
import java.lang.reflect.*;


class MountainBike
class MountainBike
Line 22: Line 21:
}
}
}
}
}'''|}
}
 
}}





Revision as of 17:51, 31 May 2008

This wiki will explore how reflection is implemented with both Ruby and Java, with the goal of showing which language's implementation makes it easier to write, easier to understand, and more efficient.

Basics

Reflection in Java

Template:Box


Reflection in Ruby

Java Reflection Links

http://java.sun.com/docs/books/tutorial/reflect/index.html
http://java.sun.com/developer/technicalArticles/ALT/Reflection/index.html
http://java.sun.com/j2se/1.5.0/docs/api/java/lang/reflect/package-summary.html

Ruby Reflection Links

http://phrogz.net/programmingruby/ospace.html