public ArrayAccessTree buildArrayAccess(ExpressionTree array,ExpressionTree index){
  ArrayType arrayType=(ArrayType)InternalUtils.typeOf(array);
  JCTree.JCArrayAccess access=maker.Indexed((JCTree.JCExpression)array,(JCTree.JCExpression)index);
  access.setType((Type)arrayType.getComponentType());
  return access;
}

public ArrayAccessTree buildArrayAccess ( ExpressionTree array , ExpressionTree index ) { ArrayType arrayType = ( ArrayType ) InternalUtils . typeOf ( array ) ; JCTree . JCArrayAccess access = maker . Indexed ( ( JCTree . JCExpression ) array , ( JCTree . JCExpression ) index ) ; access . setType ( ( Type ) arrayType . getComponentType ( ) ) ; return access ; }
builds an ast tree to dereference an array .
