コード例 #1
0
ファイル: Scanner.java プロジェクト: jsiragusa/flex-sdk
 public Scanner(Context cx, String in, String origin, boolean save_comments) {
   init(cx, save_comments);
   this.input = new InputBuffer(in, origin);
   cx.input = this.input; // FIXME: how nicely external state altering.
 }
コード例 #2
0
ファイル: Scanner.java プロジェクト: jsiragusa/flex-sdk
 /**
  * This contructor is used by Flex direct AST generation. It allows Flex to pass in a specialized
  * InputBuffer.
  */
 public Scanner(Context cx, InputBuffer input) {
   init(cx, true);
   this.input = input;
   cx.input = input; // so now we get to look around to find out who does this...
 }
コード例 #3
0
ファイル: Scanner.java プロジェクト: jsiragusa/flex-sdk
 public Scanner(
     Context cx, InputStream in, String encoding, String origin, boolean save_comments) {
   init(cx, save_comments);
   this.input = new InputBuffer(in, encoding, origin);
   cx.input = this.input;
 }