Androidで部 第7回 APTすごい
Upcoming SlideShare
Loading in...5
×
 

Androidで部 第7回 APTすごい

on

  • 4,419 views

 

Statistics

Views

Total Views
4,419
Views on SlideShare
2,202
Embed Views
2,217

Actions

Likes
3
Downloads
8
Comments
0

9 Embeds 2,217

http://d.hatena.ne.jp 2128
http://hatenatunnel.appspot.com 31
http://android.benigumo.com 28
http://webcache.googleusercontent.com 18
http://vvakame.blogspot.com 4
http://vvakame.blogspot.jp 4
http://dhatenane.greatbabyfood.com 2
http://cache.yahoofs.jp 1
http://www.feedspot.com 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Androidで部 第7回 APTすごい Androidで部 第7回 APTすごい Presentation Transcript

  • APT2010 12 23 1
  • @vvakame Kinect ↓ Android appengine2010 12 23 2
  • APT2010 12 23 3
  • APT • Annotation Processing Tool • • • •2010 12 23 4
  • meets Slim3 http://amzn.to/e8noW82010 12 23 5
  • Slim3 APT • Entity ⇔ Model • Map<String, Object> POJO • • Reflection2010 12 23 6
  • ← → • Reflection • • • • • • •2010 12 23 7
  •   JavaSE5 JavaSE6 API Slim3 JavaSE5 JavaSE5 → com.sun.mirror . JavaSE6 → javax.model . JSR 269 JavaSE6 API2010 12 23 8
  • • AbstractProcessor • • Messager • Warning Error • ProcessingEnvironment • Elements, Types (Util ) • RoundEnvironment • (Annotation )2010 12 23 9
  • • Element • • javax.lang.model.element.* • TypeMirror • Primitive • javax.lang.model.type.*2010 12 23 10
  • • APT jar • META-INF/services/ javax.annotation.processing.Processor • Processor FQN FQN = package +2010 12 23 11
  • 2010 12 23 12
  • • @Kazzz • http://d.hatena.ne.jp/Kazzz/20101208 • Aptina • Processor JUnit • http://d.hatena.ne.jp/koichik/20090620 • printf • Eclipse ErrorLog2010 12 23 13
  • × • • • 2pass →2010 12 23 14
  • FQN • import • • List java.util.List •2010 12 23 15
  • • • • • •2010 12 23 16
  • • APT • • Annotation Annotation … • • Retention SOURCE→CLASS …orz2010 12 23 17
  • 2010 12 23 18
  • JsonPullParser • https://github.com/vvakame/JSONPullParser • APT Json→POJO Java • Android http://bit.ly/hFTbtP • Tweet →1Tweet • pom.xml , Benchmark, patch2010 12 23 19
  • • 6000 Tweet (MacBookPro) • JsonPullParser (POJO Mapping) • 1200ms • Jsonic (POJO Mapping) • 4400ms • JsonLib(JSONArray convert) • 3300ms • Jackson • orz2010 12 23 20
  • • ClassWriterHelper.java • , 2pass etc • Log.java • android.util.Log APT2010 12 23 21
  • Slim3 1.0.6 2.3.12010 12 23 22