JMember.java |
1 // Copyright 2013 Bill Campbell, Swami Iyer and Bahar Akbal-Delibas 2 3 package jminusminus; 4 5 /** 6 * An interface supported by all class (or later, interface) members. 7 */ 8 9 interface JMember { 10 11 /** 12 * Declare the member name(s) in the specified (class) context. Generate the 13 * member header(s) in the (partial) class. All members must support this 14 * method. 15 * 16 * @param context 17 * class context in which names are resolved. 18 * @param partial 19 * the code emitter (basically an abstraction for producing the 20 * partial class). 21 */ 22 23 public void preAnalyze(Context context, CLEmitter partial); 24 25 } 26