newDecl.setType(evaluateVariableType(ast));  int modifiers= Modifier.PRIVATE; if (ASTResolving.isInStaticContext(node)) { modifiers |= Modifier.STATIC;
newDecl.setType(type);  newDecl.setModifiers(evaluateFieldModifiers(astRoot)); if (fSenderBinding.isInterface()) { fragment.setInitializer(ASTResolving.getInitExpression(type));
	private void doAddField(AST ast, SimpleName node, ASTRewrite rewrite) throws CoreException {		ASTNode parentType= ASTResolving.findParentType(node);		if (parentType != null) {			VariableDeclarationFragment fragment= ast.newVariableDeclarationFragment();			fragment.setName(ast.newSimpleName(node.getIdentifier()));						FieldDeclaration newDecl= ast.newFieldDeclaration(fragment);			newDecl.setType(evaluateVariableType(ast));						int modifiers= Modifier.PRIVATE;			if (ASTResolving.isInStaticContext(node)) {				modifiers |= Modifier.STATIC;			}						newDecl.setModifiers(modifiers);					boolean isAnonymous= parentType.getNodeType() == ASTNode.ANONYMOUS_CLASS_DECLARATION;			List decls= isAnonymous ?  ((AnonymousClassDeclaration) parentType).bodyDeclarations() :  ((TypeDeclaration) parentType).bodyDeclarations();										decls.add(findInsertIndex(decls, node.getStartPosition()), newDecl);						rewrite.markAsInserted(newDecl);		}	}