분류 전체보기
-
리플렉션 or RTTI(Run Time Type Information)프로그래밍 언어/데이터 타입 2013. 7. 25. 04:04
* Javathe classic castIn C++, the classic cast "(TYPE)" does not perform RTTI.type-safe downcastjava.lang.ClassCastException instanceof java.lang.Object.getClass() // Class java.lang.Class(type?) // ClassInitialization is delayed until the first reference to a static method (the constructor is implicitly static) or to a non-constant static fieldc.f. Class.forName()If there’s a superclass, initia..
-
SwingGUI/Window 2013. 7. 23. 19:00
java.awt.Container -> java.awt.Component.setLayout()java.awt.Window -> java.awt.Container.pack().setVisible().show()java.awt.Frame -> java.awt.Windowjavax.swing.JFrame -> java.awt.Frame.EXIT_ON_CLOSE .setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE).getContentPane() // java.awt.Container javax.swing.JOptionPane.showMessageDialog().showConfirmDialog().showInputDialog() .showOptionDialog() javax.swi..
-
JavaCC컴파일러/의미 해석 2013. 7. 22. 01:38
semantic analysis the maintenance of symbol tables (also called environments) mapping identifiers to their types and locationsAs the declarations of types, variables, and functions are processed, these identifiers are bound to “meanings” in the symbol tables. When uses (nondefining occurrences) of identifiers are found, they are looked up in the symbol tables. scopevisibility스택 local variable 변수..
-
SwingGUI/컨트롤 2013. 7. 22. 00:18
*javax.swing.UIManager.getSystemLookAndFeelClassName() // static.getCrossPlatformLookAndFeelClassName() // static.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel") // static"swing.defaultlaf" javax.swing.SwingUtilities.updateComponentTreeUI() // static * 이벤트 리스너java.awt.event.ActionEvent -> java.awt.AWTEvent.getActionCommand() // 문자열 java.awt.event.ComponentEvent -> java.awt.A..
-
SwingGUI/사양 2013. 7. 21. 23:50
자바 2 플랫폼 스윙 1.1 // 자바 1.2 java.awt.Container -> java.awt.Component.add() java.awt.Window -> java.awt.Container java.awt.Frame -> java.awt.Window javax.swing.JFrame -> java.awt.Frame.EXIT_ON_CLOSE .setLayout().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE)javax.swing.JButton -> javax.swing.AbstractButtonimport java.awt.*;import javax.swing.*; public class SwingTest02{static class JFrameTest exten..
-
자바GUI/GDI 2013. 7. 17. 15:38
java.awt.Dimension java.awt.Color.black // final static.red // final static.GREEN.green // final static.yellow // final static.blue // final static java.awt.Font.BOLD java.awt.FontMetrics.getAscent() java.awt.ImageToolkit.getDefaultToolkit().getImage() java.awt.Graphics.getGraphics().setColor().setFont().drawString().drawLine().drawRect().fillRect().drawRoundRect().fillOval().drawPolygon().drawI..
-
JavaCC컴파일러/파서 2013. 7. 16. 18:49
여러 개의 단어구문 단위c.f. 구문 트리비종료 기호(nonterminal symbol) 선택 충돌(choice conflict) EBNF(Extended Backus-Naur Form) 선언(declaration) 정의(definition)함수 정의변수 정의정수 정의구조체 정의공용체 정의typedef문장(statement)식(expression)항(term) compilation_unit() : {}{import_stmts() top_defs() } imports_stmts() : {}{(import_stmt())*} import_stmt() : {}{ name() ("." name())* ";"} top_defs() : {}{ ( LOOKAHEAD(storage() typeref() "(") defu..