if (star) { context.addPackageImport(new JPackageImport(buildTokenReference(), name, getStatementComment())); } else { context.addClassImport(new JClassImport(buildTokenReference(), name, getStatementComment())); }  }
	private final void jImportDeclaration(		CParseCompilationUnitContext context	) throws RecognitionException, TokenStreamException {				Token  i = null;		Token  j = null;				StringBuffer	buffer = null;		boolean	star = false;		String	name = null;						match(LITERAL_import);		i = LT(1);		match(IDENT);		{		_loop12:		do {			if ((LA(1)==DOT) && (LA(2)==IDENT)) {				match(DOT);				j = LT(1);				match(IDENT);				if ( inputState.guessing==0 ) {					(buffer == null ? (buffer = new StringBuffer(i.getText())) : buffer).append('/').append(j.getText());				}			}			else {				break _loop12;			}					} while (true);		}		if ( inputState.guessing==0 ) {			name = buffer == null ? i.getText() : buffer.toString();		}		{		switch ( LA(1)) {		case DOT:		{			match(DOT);			match(STAR);			if ( inputState.guessing==0 ) {				star = true;			}			break;		}		case SEMI:		{			break;		}		default:		{			throw new NoViableAltException(LT(1), getFilename());		}		}		}		match(SEMI);		if ( inputState.guessing==0 ) {						if (star) {				context.addPackageImport(new JPackageImport(buildTokenReference(), name, getStatementComment()));			} else {				context.addClassImport(new JClassImport(buildTokenReference(), name, getStatementComment()));			}					}	}